Fantom C/DVD Command-line switches Fantom C/DVD command-line can be run in batch files (batch mode) The Fantom C/DVD command-line switches can alter the behaviors and the automated procedures of Fantom C/DVD. To list all the Fantom C/DVD command-line switches, under the Fantom C/DVD directory, type one of the following commands: FdCmd.exe h FdCmd.exe ? The syntax used in the FDCMD command lines are shown as follows: Standard command: FDCMD [Drive:] [N] [Host:Target:Lun] [Volumename] [Filename] [/?=nn] [/h=nnn] [/L] [/M] [/U] [@n=Command] Advanced command: FDCMD [/+-D] [/+-S] Install command: FDCMD [/PA=n] [/PC=n] [/PR=n] [/TA=h,n] [/TA=I:m,n] [/TC=h,n] [/TC=I:m,n] [/TR:h,n] [/TR:I:m,n] [/Ins] [/Unins] [/+-RB] [/VI=DB|DP|IB|IP] Volume management command: FDCMD [/VM=DL|DA|MV|UM|VC] A hyphen (-) or a slash (/) must precede all switches except @. All commands can be executed in silent mode. All commands are case-insensitive. They can be entered in upper, lower, or mixed cases. The command line is parsed from left to right. Descriptions of the Fantom C/DVD command-line switches are as follows. Parameters: [?][h] [/?=nnn] [/h=nnn] Display the local-language help information and then exit. Example: FdCmd.exe ? nnn option CHS Display the Chinese (PRC) help information and then exit Examples: FdCmd.exe h=CHS FdCmd.exe /h=CHS CHT Display the Chinese (Taiwan) help information and then exit Examples: FdCmd.exe ?=CHT FdCmd.exe /?=CHT CZ Display the Czech help information and then exit Examples: FdCmd.exe ?=CZ FdCmd.exe /h=CZ DE Display the German (Germany) help information and then exit Examples: FdCmd.exe ?=DE FdCmd.exe /?=DE EN Display the English (United States) help information then exit Examples: FdCmd.exe h=ENU FdCmd.exe /h=ENU ESC Display the Spanish help information then exit Examples: FdCmd.exe ?=ESC FdCmd.exe /?=ESC FR Display the French help information then exit Examples: FdCmd.exe ?=FR FdCmd.exe /?=FR JP Display the Japanese help information then exit Example: FdCmd.exe ?=JP FdCmd.exe /?=JP KR Display the Korean help information then exit Example: FdCmd.exe ?=KR FdCmd.exe /?=KR RU Display the Russian help information then exit Example: FdCmd.exe ?=RU FdCmd.exe /?=RU [Drive:] Specify the drive letter for a Fantom C/DVD device. This letter can be specified from C to Z Examples: Mount MyImage.ISO on the Fantom C/DVD's first device. FdCmd "C:\Some Dir\MyImage.ISO" /M Mount MyImage.ISO on the Fantom C/DVD's device drive with the letter H:. FdCmd H: "C:\Some Dir\MyImage.ISO" /M [N] The sequence number of Fantom C/DVD devices which begins from one Please see /L option. Use the switch /L to get the sequence number of a Fantom C/DVD device Examples: To mount MyImage.ISO on the first Fantom C/DVD device, you can enter the following command, FdCmd 1 "C:\Some Dir\MyImage.ISO" /M FdCmd 3 "C:\Some Dir\MyImage.ISO" /M [Host:Target:Lun] Specify the HOST, TARGET, and LUN number for a Fantom C/DVD device. Use the switch /L to get the number of a Fantom C/DVD device Please see /L option. HOST: represents the host id of a SCSI controller . It can be numbered from 0 to n where n is the maximum host id in WindowsTM. TARGET: SCSI Controller driver target id. It can be 0...128. LUN: SCSI Controller driver lun id. Fixed 0. Example: Mount MyImage.ISO to Fantom C/DVD's SCSI Host 3/Target 1/Lun 0 drive. FdCmd 3:1:0 "C:\Some Dir\MyImage.ISO" /M [Volumename] To display the volume name of the present virtual drive, you can enter FDCmd.exe /VM=DL Besides, you can use the tool Mountvol.exe to show all volumes, which are listed in the frame [HKEY_LOCAL_MACHINE\SYSTEM\MountedDevices] Specify the volume name of the mounted target. The format of the volume name is \\?\Volume{GUID}\ where {GUID} is the global unique identification. Example: FdCmd "\\?\Volume{a5b6237e-3690-11da-bfb2-806d6172696f}\" "C:\Some Dir\MyImage.ISO" /M [Filename] Specify the FdCmd /TC=I:3,1 image files. The image file will be mounted or unmounted. Filename supports ANSI, Unicode, Multibyte character Sets(MBCS). Filename supports ms-dos 8.3 filename or windows long filename. The total length of the file name should not exceed 260 ANSI characters. Example: Mount MyImage.ISO to Fantom C/DVD's first device. FdCmd "C:\Some Dir\MyImage.ISO" To mount an image file MyImage.ISO shared by the network-neighbor computer ImageServer on the first virtual device, you can enter FdCmd \\ImageServer\HDD\MyImage.ISO To mount an image file MyImage.ISO located in the same directory as that of the execution file FdCmd.exe, you can enter FdCmd G:\MyImage.ISO [/PL] List the information of all Fantom C/DVD SCSI controllers Example: FdCmd /PL [/PA=n] Add a Fantom C/DVD SCSI controller meanwhile adding a virtual C/DVD device to the controller. The maximum number of supporting SCSI controller are bounded by the window operating system. Add a Fantom C/DVD controller. n: The number of the controller to be added. Example: Add one Fantom C/DVD controller FdCmd /PA FdCmd /PA /PL Add two Fantom C/DVD controllers FdCmd /PA=2 Notably, the procedure of adding new controller may take a long time along with the number of controller added once. Besides, the procedure may take a long time when the operating system is restarting. [/PC=n] Setting a Fantom C/DVD controller maximun count. Setting the total number of the Fantom C/DVD SCSI controller n: the number of the controller Example: FdCmd /PC FdCmd /PC=2 FdCmd /PC=2 /L [/PR=n] Remove the last n Fantom C/DVD controller meanwhile removing all virtual devices under these controllers. n: The number of the controller to be removed. Example: Remove the last controller. FdCmd /PR To remove the last two controllers, you can enter FdCmd /PR=2 FdCmd /PR=2 /PL [/TL] List the information of all Fantom C/DVD targets. Example: FdCmd /TL [/TA=h,n] represents the number of Fantom C/DVD targets to be added. h: Host ID, The identification of the SCSI controller. n: The number of target to be added. The value of 1...128 which means the total number of target to be removed.?? The maximum number of targets supported by a SCSI controller is 128. Example: Add a target to the controller which Host ID is 5 FdCmd /TA=5 Add 2 targets to host:5 FdCmd /TA=5,2 Notes. (1) Host ID cannot be ignored in the command if the number of the SCSI controller is larger than one. (2) There is no Host ID allocated for the SCSI controller if no virtual device is managed by the SCSI controller. [/TA=I:m,n] Add Fantom C/DVD targets. m: Host index, The value of SCSI controller host index. n: The number of targets to be added. The value of 1...128 which means the total number of target to be removed. The maximum number of targets supported by a SCSI controller is 128. Example: Add two targets to the second SCSI controller of Fantom DVD. FdCmd /TA=I:1,2 Add one target to the fifth SCSI controller. FdCmd /TA=I:5,1 [/TC=h,n] Set the total number of Fantom C/DVD targets supported by a SCSI controller. h: Host ID, The identification of the SCSI controller. n: The number of target to be added where n < 128.Or The maximum number of targets supported by a SCSI controller is 128. Example: Set the total number of targets supported by the Host:5 SCSI controller to 3. FdCmd /TC=3 Set the total number of targets supported by the Host:5 SCSI controller to 2. FdCmd /TC=5,2 FdCmd /TC=5,2 /TL Notes. The host ID cannot be ignored in the command if the number of the SCSI controller is larger than one. No host ID will be allocated for a SCSI controller if no target is managed by the SCSI controller. Please use the option [/TC=I:m,n] to set the number of targets. [/TC=I:m,n] Set a Fantom C/DVD target count. Set the number of Fantom C/DVD targets. m: Host index, the sequence number of SCSI controller. n: The number of target to be added. The maximum number of targets managed by a SCSI controller is 128. The value of 1...128 which means the total number of target to be removed. Example: Set the number of targeted managed by the first SCSI controller to 2. FdCmd /TC=I:1,2 FdCmd /TC=I:3,1 /L [/TR:h,n] Remove the last Fantom C/DVD target. h: Host ID, The value of SCSI controller host ID. n: Remove target count The value of 1...128 which means the total number of target to be removed. Example: Remove the last target from host:5. FdCmd /TR=5 Remove the last 2 targets from host:5. FdCmd /TR=5,2 [/TR=I:m,n] Remove the last Fantom C/DVD target. m: Host index, The value of SCSI controller host index. n: The number of target to be added. The value of 1...128 which means the total number of target to be removed. Example: FdCmd /TR=I:1,2 FdCmd /TR=I:5,1 [/M] Specify the image file to be mounted. Example: Mount the image file to the first virtual C/DVD-ROM drive. FdCmd "C:\Some Dir\MyImage.ISO" /M Mount the image file to the G: virtual C/DVD-ROM drive. FdCmd G: "C:\Some Dir\MyImage.ISO" FdCmd H: MyImage.ISO /M FdCmd 3 "C:\Some Dir\MyImage.ISO" /M FdCmd G: "\\Computer\Share Files\My Image File.ISO" /M [/U] Specify the image file to be unmount. Example: Unmount the first Fantom C/DVD-ROM drive. FdCmd /U FdCmd H: /U FdCmd 2 /U FdCmd 3:1:0 /U [/L] Display all Fantom C/DVD drives. Example: FdCmd /L FdCmd 2 /L FdCmd J: /L FdCmd 6:1:0 /L FdCmd "\\?\Volume{19a7c787-e962-11da-bdf3-0020ed4c28bf}\" /L [/+D] Enable the "Hide ATIP Code" option for a specific drive. The default of the option is enabled. Example: Enable the Hide ATIP Code option for the first virtual target. FdCmd /D Enable the Hide ATIP Code option for all virtual targets. FdCmd 1 /D Enable the Hide ATIP Code option for the target with drive ID H:. FdCmd H: /D Enable the Hide ATIP Code option for the target with Host:3, Target:1 and Lun:0. FdCmd 3:1:0 /D FdCmd 3:1:0 /+D [/-D] Disable the "hide ATIP code" option for a specific drive. Example: FdCmd /-D FdCmd H: /-D FdCmd 1 /-D FdCmd 3:1:0 /-D [/+-S] Setting all output messages silent. The default setting is enable. determines whether to output the messages. The default setting is enabled. [/+S] Enable all output message. Example: FdCmd /Ins /+S [/-S] Disable all output message. Example: FdCmd /Ins /-S [/+-RB] All command success then reboot computer. The default setting is disable. Determine whether to reboot your computer after the successful configuration. The default setting is disabled. [/+RB] Enable the computer-rebooting option. Example: FdCmd /Ins /+S /+RB [/-RB] Disable the computer-rebooting option. Example: To avoid your computer from rebooting after the successful configuration, you can enter FdCmd /Ins /+S /+RB [/Ins] Install the Fantom C/DVD device driver. Example: Install the device driver and display all related messages. FdCmd /Ins To install the device driver without displaying any messages, you can enter FdCmd /Ins /-S [/Unins] Uninstall the device driver of Fantom C/DVD-ROM. Example: FdCmd /Unins FdCmd /Unins /-S Notably, if [/-S], i.e. the silent mode, is given, the device driver of Fantom C/DVD-ROM will be removed without any confirmation dialog. [/VI=DB|DP|IB|IP] Display the related information and version number of the installed Fantom C/DVD-ROM program. [/VI] Display FdCmd.exe version information. Example: FdCmd /VI [/VI=DB] Display Fantom C/DVD controller version information. Display the version information of the installed Fantom C/DVD controllers. Example: FdCmd /VI=DB [/VI=DP] Display the version information of the installed Fantom C/DVD device. Example: FdCmd /VI=DP [/VI=IB] Display Fantom C/DVD interface controller version information. Display the version information of the SCSI controllers managed by FantomDVD.dll, i.e. the interface program of Fantom C/DVD-ROM. Example: FdCmd /VI=IB [/VI=IP] Display Fantom C/DVD interface device version information. Display the version information of the device drivers hung on the Fantom C/DVD interface program. Example: FdCmd /VI=IP [/VM=DL|DA|MV|UM] [/VM=DL] Enumerating unique volume names. List the devices mounted on a specific disk volume. Example: List all devices mounted on each volume. FdCmd /VM FdCmd /VM=DL List the disk volume related to the second devices. FdCmd 2 /VM=DL Notes. The un-mounting device would not be shown by the command. [/VM=DA,Target] Drive letter assignment editor. Assign a drive letter for a specific Fantom C/DVD device. Notably, the device cannot be a hard disk or a floppy disk. Example: Change the device with drive letter J: to K: FdCmd J: /VM=DA,K: Assign K: to the second device. FdCmd 2 /VM=DA,K FdCmd "\\?\Volume{19a7c787-e962-11da-bdf3-0020ed4c28bf}\" /VM=DA,K FdCmd "\\?\Volume{19a7c787-e962-11da-bdf3-0020ed4c28bf}\" /VM=DA,I Assign K: to the device with Host ID:3, Target ID:1, and Lun ID:0. FdCmd 3:1:0 /VM=DA,K [/VM=MV,PATH] Mount a device to a specific path in the file system. PATH: NTFS file system directory. The path should be an empty directory in a NT file system (NTFS) Example: Mount the device of the drive letter K: to the directory “C:\CDROM1” FdCmd K: /VM=MV,"C:\CDVDROM1" FdCmd K: /VM=MV,"C:\CDVDROM1" /VM=VL Mount the second virtual device to the directory “C:\CDVDROM1” FdCmd 2 /VM=MV,C:\CDVDROM1 Mount the virtual device of Host:3, Target:1 and Lun:0 to the directory "C:\Some Dir\CDVDROM1" FdCmd 3:1:0 /VM=MV,"C:\Some Dir\CDVDROM1" FdCmd "\\?\Volume{19a7c787-e962-11da-bdf3-0020ed4c28bf}\" /VM=MV,"C:\Some Dir\CDVDROM2" [/VM=UM,PATH] Un-mount a target and release its drive letter or path. If you want to change the mounted path for a target, please un-mount the target and then mount it to the new path. Unmounting a volume at a mount point Example: Un-mount the target of the drive letter K:. FdCmd K: /VM=UM FdCmd "\\?\Volume{19a7c787-e962-11da-bdf3-0020ed4c28bf}\" /VM=UM Un-mount the second target and release its drive letter. FdCmd 2 /VM=UM FdCmd 3:1:0 /VM=UM FdCmd /VM=UM,C:\CDROM1 FdCmd /VM=UM,"C:\Some Dir\DVDROM1" [/VM=VC,Source,Target] Change the drive letter or the mount point for a target Example: Change the drive letter from K: to G: FdCmd /VM=VC,K:,G: Re-mount the target K: to the mount path “C:\Some Dir\DVDROM1" FdCmd /VM=VC,K:,"C:\Some Dir\DVDROM1" FdCmd /VM=VC,"C:\Some Dir\DVDROM1","C:\Some Dir\DVDROM2" FdCmd /VM=VC,"C:\Some Dir\DVDROM2",K: [@N=Command] Batch command mode switch. After mounting the image file, the program will orderly execute these batch files. The N value of 1...10 which means the number of times. specifies the order to execute the batch file. It can be numbered from 1 to 10. [@NW=T] T: Waiting time in second. The special option asks the program to wait T seconds. Example: To execute the batch file “C:\MyImage.bat” right after mounting the image “MyImage.ISO” to the target H:, you can enter FdCmd H: C:\MyImage.ISO /M @C:\MyImage.bat To execute “C:\MyImage.bat” and then “C:\MyImage.cmd”, you can enter FdCmd H: C:\MyImage.ISO /M @1=C:\MyImage.bat @2=C:\MyImage.cmd FdCmd H: "C:\Some Dir\MyImage.ISO" /M @"C:\Some Dir\MyImage.bat" FdCmd H: C:\MyImage.ISO /M @1:AutoRun\AutoRun.exe FdCmd H: C:\MyImage.ISO /M @AutoRun\AutoRun.exe FdCmd H: C:\MyImage.ISO /M @1="Some Dir\PlayAudio.exe" FdCmd H: C:\MyImage.ISO /M @1="C:\Some Dir\PlayAudio.exe" @2="C:\Some Dir\PhotoShow.exe" After mounting “MyImage.ISO” to H:, to execute "Some Dir\PlayAudio.exe", wait 10 second, and then execute "C:\Some Dir\PhotoShow.exe", you may enter FdCmd H: C:\MyImage.ISO /M @1="C:\Some Dir\PlayAudio.exe" @2W=10 @3="C:\Some Dir\PhotoShow.exe" Additional Information: For a description of all the FDCMD settings, see Fantom C/DVD online help. 2006 An Chen Corporation