A command line version of Win32DiskImager
Originally modified for use in PiBakery, CommandLineDiskImager is a command line version of the popular Win32DiskImager program used to write images to removable storage devices, such as SD cards and USB drives.
Currently only writing an image file to a device is supported, you can't read a device to a file just yet. MD5 checks have also not been implemented yet.
This fork provides a Visual Studio solution suitable for compiling with VisualStudio 2017 Community Edition. It also adds some minor adjustments (such as automatic UAC and error messages).
To use:
- Build the project using Visual Studio 2017
- cd into the directory that contains CommandLineDiskImager.exe
- Run
CommandLineDiskImager.exe pathToImageFile driveLetterwherepathToImageFileis the path to the image file you want to write, anddriveLetteris the single letter of the drive that you want the image written to
Example:
CommandLineDiskImager.exe C:\Users\John\Downloads\raspbian.img G
would write the image file located C:\Users\John\Downloads\raspbian.img G to the drive G: