Command Line Version

Top  Previous  Next

FlashBoot can be invoked from command line. This is particularly useful when you need some automation or unattended execution of FlashBoot.

 

Installation folder contains fb-cli.exe file (CLI stands for "Command Line Interface") alongside fb-gui.exe (GUI = "Graphical User Interface"). Installer creates shortcut only for fb-gui.exe.

 

Command-line version of FlashBoot has the following options:

 

Usage:

  fb-cli.exe /SCENARIO:InstallWindows8or10ToUSB_FromDVD_BiosMode

             { /INPUT_DISK:<CD/DVD drive letter:> |

               /INPUT_IMAGE:<ImageFile.iso> |

               /INPUT_PATH:<Directory with CD/DVD files> }

             [ /WIM_INDEX:<Number> ]

             [ /VOLUME_LABEL:<String> ]

             { /OUTPUT_DISK:<USB drive letter:> |

               /OUTPUT_PHYSICAL_DISK:<Number> }

             [ /RESERVE:<Size of unallocated space at the end of disk> ]

      Install full-featured Windows 8/8.1/10 to USB thumbdrive or USB HDD

      (from DVD, for BIOS-based computers)

 

  fb-cli.exe /SCENARIO:InstallWindows8or10ToUSB_FromDVD_UefiMode

             { /INPUT_DISK:<CD/DVD drive letter:> |

               /INPUT_IMAGE:<ImageFile.iso> |

               /INPUT_PATH:<Directory with CD/DVD files> }

             [ /WIM_INDEX:<Number> ]

             [ /VOLUME_LABEL:<String> ]

             { /OUTPUT_DISK:<USB drive letter:> |

               /OUTPUT_PHYSICAL_DISK:<Number> }

             [ /RESERVE:<Size of unallocated space at the end of disk> ]

      Install full-featured Windows 8/8.1/10 to USB thumbdrive or USB HDD

      (from DVD, for UEFI-based computers)

 

  fb-cli.exe /SCENARIO:InstallWindows8or10ToUSB_FromESD_BiosMode

             /INPUT_ESD_IMAGE:<ImageFile.esd>

             [ /WIM_INDEX:<Number> ]

             [ /VOLUME_LABEL:<String> ]

             { /OUTPUT_DISK:<USB drive letter:> |

               /OUTPUT_PHYSICAL_DISK:<Number> }

             [ /RESERVE:<Size of unallocated space at the end of disk> ]

      Install full-featured Windows 8/8.1/10 to USB thumbdrive or USB HDD

      (from ESD, for BIOS-based computers)

 

  fb-cli.exe /SCENARIO:InstallWindows8or10ToUSB_FromESD_UefiMode

             /INPUT_ESD_IMAGE:<ImageFile.esd>

             [ /WIM_INDEX:<Number> ]

             [ /VOLUME_LABEL:<String> ]

             { /OUTPUT_DISK:<USB drive letter:> |

               /OUTPUT_PHYSICAL_DISK:<Number> }

             [ /RESERVE:<Size of unallocated space at the end of disk> ]

      Install full-featured Windows 8/8.1/10 to USB thumbdrive or USB HDD

      (from ESD, for UEFI-based computers)

 

  fb-cli.exe /SCENARIO:PrepareWinVista78or10InstallerOnUSB_FromDVD_BiosMode

             { /INPUT_DISK:<CD/DVD drive letter:> |

               /INPUT_IMAGE:<ImageFile.iso> |

               /INPUT_PATH:<Directory with CD/DVD files> }

             { /FS:FAT32 | /FS:NTFS }

             [ /VOLUME_LABEL:<String> ]

             { /OUTPUT_DISK:<USB drive letter:> |

               /OUTPUT_PHYSICAL_DISK:<Number> }

             [ /RESERVE:<Size of unallocated space at the end of disk> ]

             [ /ADD_USB3_DRIVERS ]

             [ /ADD_NVME_DRIVERS ]

             [ /ADD_AHCI_RAID_DRIVERS ]

             [ /ADD_DRIVERS:<Directory> [ /ADD_DRIVERS:<Directory> [ ... ] ] ]

      Prepare Microsoft Windows Vista/7/8/8.1/10 installer on USB thumbdrive or USB HDD

      (from DVD, for BIOS-based computers) with optional driver integration

 

  fb-cli.exe /SCENARIO:PrepareWinVista78or10InstallerOnUSB_FromDVD_UefiMode

             { /INPUT_DISK:<CD/DVD drive letter:> |

               /INPUT_IMAGE:<ImageFile.iso> |

               /INPUT_PATH:<Directory with CD/DVD files> }

             [ /VOLUME_LABEL:<String> ]

             { /OUTPUT_DISK:<USB drive letter:> |

               /OUTPUT_PHYSICAL_DISK:<Number> }

             [ /RESERVE:<Size of unallocated space at the end of disk> ]

             [ /ADD_USB3_DRIVERS ]

             [ /ADD_NVME_DRIVERS ]

             [ /ADD_AHCI_RAID_DRIVERS ]

             [ /ADD_DRIVERS:<Directory> [ /ADD_DRIVERS:<Directory> [ ... ] ] ]

             [ /PATCH_WIN7_UEFILDR_TO_AVOID_VGA_IO ]

      Prepare Microsoft Windows Vista/7/8/8.1/10 installer on USB thumbdrive or USB HDD

      (from DVD, for UEFI-based computers) with optional driver integration

 

  fb-cli.exe /SCENARIO:PrepareWinVista78or10InstallerOnUSB_FromESD_BiosMode

             /INPUT_ESD_IMAGE:<ImageFile.esd>

             { /FS:FAT32 | /FS:NTFS }

             [ /VOLUME_LABEL:<String> ]

             { /OUTPUT_DISK:<USB drive letter:> |

               /OUTPUT_PHYSICAL_DISK:<Number> }

             [ /RESERVE:<Size of unallocated space at the end of disk> ]

             [ /ADD_USB3_DRIVERS ]

             [ /ADD_NVME_DRIVERS ]

             [ /ADD_AHCI_RAID_DRIVERS ]

             [ /ADD_DRIVERS:<Directory> [ /ADD_DRIVERS:<Directory> [ ... ] ] ]

      Prepare Microsoft Windows Vista/7/8/8.1/10 installer on USB thumbdrive or USB HDD

      (from ESD, for BIOS-based computers) with optional driver integration

 

  fb-cli.exe /SCENARIO:PrepareWinVista78or10InstallerOnUSB_FromESD_UefiMode

             /INPUT_ESD_IMAGE:<ImageFile.esd>

             [ /VOLUME_LABEL:<String> ]

             { /OUTPUT_DISK:<USB drive letter:> |

               /OUTPUT_PHYSICAL_DISK:<Number> }

             [ /RESERVE:<Size of unallocated space at the end of disk> ]

             [ /ADD_USB3_DRIVERS ]

             [ /ADD_NVME_DRIVERS ]

             [ /ADD_AHCI_RAID_DRIVERS ]

             [ /ADD_DRIVERS:<Directory> [ /ADD_DRIVERS:<Directory> [ ... ] ] ]

             [ /PATCH_WIN7_UEFILDR_TO_AVOID_VGA_IO ]

      Prepare Microsoft Windows Vista/7/8/8.1/10 installer on USB thumbdrive or USB HDD

      (from ESD, for UEFI-based computers) with optional driver integration

 

  fb-cli.exe /SCENARIO:PrepareWinXpInstallerOnUSB_FromCD

             { /INPUT_DISK:<CD/DVD drive letter:> |

               /INPUT_IMAGE:<ImageFile.iso> |

               /INPUT_PATH:<Directory with CD/DVD files> }

             [ /FSTYPE:<Filesystem type> ]

             [ /GEOMETRY:<Geometry options> ]

             [ /VOLUME_LABEL:<String> ]

             { /OUTPUT_DISK:<USB drive letter:> |

               /OUTPUT_PHYSICAL_DISK:<Number> }

             [ /RESERVE:<Size of unallocated space at the end of disk> ]

      Prepare Microsoft Windows XP installer on USB thumbdrive or USB HDD (from CD)

 

  fb-cli.exe /SCENARIO:CreateBootableClone_BiosMode

             [ /WITHOUT_COMPRESSION ]

             [ /EXCLUDE:<FileOrDirectory> [ /EXCLUDE:<FileOrDirectory> [ ... ] ] ]

             [ /VOLUME_LABEL:<String> ]

             { /OUTPUT_DISK:<USB drive letter:> |

               /OUTPUT_PHYSICAL_DISK:<Number> }

             [ /RESERVE:<Size of unallocated space at the end of disk> ]

      Create bootable clone of this OS (Windows 8/8.1/10) for BIOS-based computers

 

  fb-cli.exe /SCENARIO:CreateBootableClone_UefiMode

             [ /WITHOUT_COMPRESSION ]

             [ /EXCLUDE:<FileOrDirectory> [ /EXCLUDE:<FileOrDirectory> [ ... ] ] ]

             [ /VOLUME_LABEL:<String> ]

             { /OUTPUT_DISK:<USB drive letter:> |

               /OUTPUT_PHYSICAL_DISK:<Number> }

             [ /RESERVE:<Size of unallocated space at the end of disk> ]

      Create bootable clone of this OS (Windows 8/8.1/10) for UEFI-based computers

 

  fb-cli.exe /SCENARIO:CreateInstallableClone_BiosMode

             [ /EXCLUDE:<FileOrDirectory> [ /EXCLUDE:<FileOrDirectory> [ ... ] ] ]

             [ /VOLUME_LABEL:<String> ]

             { /OUTPUT_DISK:<USB drive letter:> |

               /OUTPUT_PHYSICAL_DISK:<Number> }

             [ /RESERVE:<Size of unallocated space at the end of disk> ]

             [ /ADD_USB3_DRIVERS ]

             [ /ADD_NVME_DRIVERS ]

             [ /ADD_AHCI_RAID_DRIVERS ]

             [ /ADD_DRIVERS:<Directory> [ /ADD_DRIVERS:<Directory> [ ... ] ] ]

      Create installable clone of this OS (Windows 7/8/8.1/10)

      for BIOS-based computers, with optional driver integration

 

  fb-cli.exe /SCENARIO:CreateInstallableClone_UefiMode

             [ /EXCLUDE:<FileOrDirectory> [ /EXCLUDE:<FileOrDirectory> [ ... ] ] ]

             [ /VOLUME_LABEL:<String> ]

             { /OUTPUT_DISK:<USB drive letter:> |

               /OUTPUT_PHYSICAL_DISK:<Number> }

             [ /RESERVE:<Size of unallocated space at the end of disk> ]

             [ /ADD_USB3_DRIVERS ]

             [ /ADD_NVME_DRIVERS ]

             [ /ADD_AHCI_RAID_DRIVERS ]

             [ /ADD_DRIVERS:<Directory> [ /ADD_DRIVERS:<Directory> [ ... ] ] ]

      Create installable clone of this OS (Windows 7/8/8.1/10)

      for UEFI-based computers, with optional driver integration

 

  fb-cli.exe /SCENARIO:ConvertBartPE_FromCDtoUSB

             { /INPUT_DISK:<CD/DVD drive letter:> |

               /INPUT_IMAGE:<ImageFile.iso> |

               /INPUT_PATH:<Directory with CD/DVD files> }

             [ /FSTYPE:<Filesystem type> ]

             [ /GEOMETRY:<Geometry options> ]

             [ /VOLUME_LABEL:<String> ]

             { /OUTPUT_DISK:<USB drive letter:> |

               /OUTPUT_PHYSICAL_DISK:<Number> }

             [ /RESERVE:<Size of unallocated space at the end of disk> ]

      Convert BartPE (mini version of Windows XP) from CD to bootable USB thumbdrive or USB HDD

 

  fb-cli.exe /SCENARIO:BuiltinMiniDos

             { /MAPTO:C: | /MAPTO:A: }

             [ /FSTYPE:<Filesystem type> ]

             [ /GEOMETRY:<Geometry options> ]

             [ /VOLUME_LABEL:<String> ]

             { /OUTPUT_DISK:<USB drive letter:> |

               /OUTPUT_PHYSICAL_DISK:<Number> }

             [ /RESERVE:<Size of unallocated space at the end of disk> ]

      Make minimal DOS-based bootable USB thumbdrive with Volkov Commander.

      Perform necessary A:/C: substitution in \CONFIG.SYS and *.BAT files.

 

  fb-cli.exe /SCENARIO:BuiltinUefiShell

             [ /VOLUME_LABEL:<String> ]

             { /OUTPUT_DISK:<USB drive letter:> |

               /OUTPUT_PHYSICAL_DISK:<Number> }

             [ /RESERVE:<Size of unallocated space at the end of disk> ]

      Format USB thumbdrive in the UEFI mode and install builtin UEFI shell to it.

 

  fb-cli.exe /SCENARIO:SaveRawImage

             { /INPUT_DISK:<USB drive letter:> |

               /INPUT_PHYSICAL_DISK:<Number> }

             /OUTPUT_IMAGE:<UsbImageFile.img>

      Save USB storage device to image file

 

  fb-cli.exe /SCENARIO:RestoreRawImage

             /INPUT_IMAGE:<UsbImageFile.img>

             { /OUTPUT_DISK:<USB drive letter:> |

               /OUTPUT_PHYSICAL_DISK:<Number> }

      Restore image file to USB storage device

 

  fb-cli.exe /SCENARIO:DuplicateUsbToUsb

             { /INPUT_DISK:<USB drive letter:> |

               /INPUT_PHYSICAL_DISK:<Number> }

             { /OUTPUT_DISK:<USB drive letter:> |

               /OUTPUT_PHYSICAL_DISK:<Number> }

      Copy one USB storage device to another USB storage device

 

  fb-cli.exe /SCENARIO:Wipe

             { /LAYOUT:PARTITIONED | /LAYOUT:SUPERFLOPPY }

             [ /FSTYPE:<Filesystem type> ]

             [ /VOLUME_LABEL:<String> ]

             { /OUTPUT_DISK:<USB drive letter:> |

               /OUTPUT_PHYSICAL_DISK:<Number> }

      Wipe (securely erase) all files and free space on USB storage device,

      then create empty nonbootable filesystem

 

  fb-cli.exe /SCENARIO:QuickFormat

             { /LAYOUT:PARTITIONED | /LAYOUT:SUPERFLOPPY }

             [ /FSTYPE:<Filesystem type> ]

             [ /VOLUME_LABEL:<String> ]

             { /OUTPUT_DISK:<USB drive letter:> |

               /OUTPUT_PHYSICAL_DISK:<Number> }

             [ /RESERVE:<Size of unallocated space at the end of disk> ]

      Create empty nonbootable filesystem on USB storage device

 

  fb-cli.exe /SCENARIO:FatSFX

             /INPUT_PATH:<Directory>

             [ /ALLOWED_CLUSTER_SIZES:<Comma-separated list of numbers> ]

             [ /ALLOW_FAT32 [ /OVERRIDE_FAT32_BOOTCODE:<File name with FAT32 boot sector> ] ]

             [ /ALLOW_FAT16 [ /OVERRIDE_FAT16_BOOTCODE:<File name with FAT16 boot sector> ] ]

             [ /ALLOW_FAT12 [ /OVERRIDE_FAT12_BOOTCODE:<File name with FAT12 boot sector> ] ]

             [ /OVERRIDE_MBR_BOOTCODE:<File name with MBR boot code> ]

             [ /RUN_AFTER_EXTRACTION:<Command to run after extraction> ]

             [ /CUSTOMIZE_ICON:<CustomIcon.ico> ]

             [ /CUSTOMIZE_TITLE:<String> ]

             [ /CUSTOMIZE_TEXT:<String> [ /CUSTOMIZE_TEXT:<String> [ ... ] ] ]

             [ /VOLUME_LABEL:<String> ]

             /OUTPUT_EXE:<Filename.exe>

      Generate self-extracting EXE (USB formatter) with embedded FAT filesystem

 

  fb-cli.exe /SCENARIO:NtfsSFX

             /INPUT_PATH:<Directory>

             [ /OVERRIDE_VOLUME_BOOTCODE:<File name with volume boot sector> ]

             [ /OVERRIDE_MBR_BOOTCODE:<File name with MBR boot code> ]

             [ /RUN_AFTER_EXTRACTION:<Command to run after extraction> ]

             [ /CUSTOMIZE_ICON:<CustomIcon.ico> ]

             [ /CUSTOMIZE_TITLE:<String> ]

             [ /CUSTOMIZE_TEXT:<String> [ /CUSTOMIZE_TEXT:<String> [ ... ] ] ]

             [ /VOLUME_LABEL:<String> ]

             /OUTPUT_EXE:<Filename.exe>

      Generate self-extracting EXE (USB formatter) with embedded NTFS filesystem

 

  fb-cli.exe /SCENARIO:RawSFX

             /INPUT_IMAGE:<UsbImageFile.img>

             [ /RUN_AFTER_EXTRACTION:<Command to run after extraction> ]

             [ /CUSTOMIZE_ICON:<CustomIcon.ico> ]

             [ /CUSTOMIZE_TITLE:<String> ]

             [ /CUSTOMIZE_TEXT:<String> [ /CUSTOMIZE_TEXT:<String> [ ... ] ] ]

             /OUTPUT_EXE:<Filename.exe>

      Generate self-extracting EXE (USB formatter) with embedded raw image

 

About notation:

  [ X ] denotes optional parameter

  { X | Y | Z } denotes mutually exclusive choice

  < X > denotes something to be filled in by user, not entered literally

 

<Filesystem type> explained in examples:

  auto                          Automatically choose between FAT12, FAT16 and FAT32 with default cluster sizes

  fat16                         Allow FAT16 only

  fat16(1024)                   Allow FAT16 only with cluster size of 1K,

                                disallow other cluster sizes, FAT12 and FAT32

  fat16(1024,2048)              Allow FAT16 only with cluster size of 1K or 2K,

                                disallow other cluster sizes, FAT12 and FAT32

  fat16(1024,2048),fat32(4096)  Allow FAT16 with cluster size 1K or 2K, or FAT32 with cluster size 4K.

                                Disallow all other cluster sizes and FAT12.

  fat12(512),fat32(4096,8192)   Allow FAT12 with cluster size 512, or FAT32 with cluster size 4K or 8K.

                                Disallow all other cluster sizes and FAT16.

 

<Geometry options> explained in examples:

  auto                          Use default geometry (255 heads, 63 sectors per track)

  h:255,s:63                    Same as above

  h:127,s:32                    127 heads, 32 sectors per track

  s:32                          Override sectors per track (255 heads, 32 sectors per track)

  h:127                         Override heads (127 heads, 63 sectors per track)

 

Minimum value for sectors per track is 15 for fat32 formatted disks and 11 for fat12/fat16 formatted disks.

Maximum value for sectors per track is 63.

Head count value must be between 2 and 255.

Cylinder count is detected automatically by FlashBoot.