# Info
imd_cpmtools_vfii info SBC548N_vector_ZCB_serialA_04_05.IMD --skew auto --skew-verbose

# List directory
imd_cpmtools_vfii ls SBC548N_vector_ZCB_serialA_04_05.IMD

# Extract a file
imd_cpmtools_vfii get SBC548N_vector_ZCB_serialA_04_05.IMD V2FORMAT.COM --out V2FORMAT.COM
imd_cpmtools_vfii get SBC548N_vector_ZCB_serialA_04_05.IMD LS.COM --out LS.ORIG.COM
imd_cpmtools_vfii get SBC548N_V2FORMAT_LS.COM.IMD LS.COM --out LS.COM

# Insert/replace a file (creates a new IMD)
imd_cpmtools_vfii put SBC548N_vector_ZCB_serialA_04_05.IMD V2FORMAT_patched.COM --as V2FORMAT.COM --overwrite --out SBC548N_patched.IMD

# Put inplace (add file to IMD in-place)
imd_cpmtools_vfii put SBC548N_vector_ZCB_serialA_04_05.IMD mbasic.com --overwrite --inplace --verify

# Delete a file (creates a new IMD)
imd_cpmtools_vfii rm SBC548N_vector_ZCB_serialA_04_05.IMD GWV2BIO5.ASM --out SBC548N_MORE_SPACE.IMD

# Modify IMD SPDTAB (drive types connected to the VFII)

## Show what SPDTAB is currently set to:
imd_cpmtools_vfii spdtab SBC548N_vector_ZCB_serialA_04_05.IMD --skew auto

## Patch drive B to 8-inch class (recommended: patch the system copy):
imd_cpmtools_vfii spdtab SBC548N_vector_ZCB_serialA_04_05.IMD --drive B --class 8 --target system --out SBC548N_spdtabB8.IMD --skew auto

## Check result of previous command
imd_cpmtools_vfii spdtab SBC548N_spdtabB8.IMD --skew auto

## Patch drive B and also force fastest step-rate bits (0):
imd_cpmtools_vfii spdtab SBC548N_vector_ZCB_serialA_04_05.IMD --drive B --class 8 --step 0 --target system --out SBC548N_spdtabB8_step0.IMD --skew auto

## Patch drive B and also force fastest step-rate bits (0): , patch all three locations of spdtab on the disk
imd_cpmtools_vfii spdtab SBC548N_vector_ZCB_serialA_04_05.IMD --drive B --class 8 --step 0 --target system --out SBC548N_spdtabB8_step0.IMD --target all --skew auto

## Inspect patched image
imd_cpmtools_vfii spdtab .\SBC548N_spdtabB8_step0.IMD --skew auto

# Patch Console Ports
imd_cpmtools_vfii console SBC548N_VANILLA.IMD --data 02 --status 03 --out SBC548N_Test_Serial_02_03.IMD --verbose
imd_cpmtools_vfii console SBC548N_VANILLA.IMD --data 04 --status 05 --out SBC548N_Test_Serial_04_05.IMD --verbose

# Patch Console Ports In Place
imd_cpmtools_vfii console SBC548N.IMD --data 02 --status 03 --inplace --verbose
imd_cpmtools_vfii console SBC548N.IMD --data 04 --status 05 --inplace --verbose
