title: Node.js - Writing an image to a USB/SD on Windows
body: <p>So I've written a program in Electron that will download the latest version of our image and then write it to the selected device. </p>
  
  <p>I've got this working fine for Linux and OSX as I'm able to call a sub process and just run the dd command directly.</p>
  
  <p>My issues come when trying to make this work on Windows, I've not been able to find a node package that does dd or something similar, and natively writing it for Windows doesn't want to work due to the chaining of commands etc. </p>
  
  <p>Does anyone have any suggestions? My next idea would be to write a .bat script that is called by the sub process and try to do it that way. However if there is a platform universal approach with node that would be ideal! Thanks.</p>