Before using any command line parameters please ensure that you have sufficient command line experience and you know exactly what you are doing.
In DOS, OS/2, and Microsoft Windows, a batch file is a text file containing a series of commands intended to be executed by the command interpreter. Similar to job control language and other systems on mainframe and minicomputer systems, batch files were added to ease the work required for certain regular tasks by allowing the user to set up a batch script to automate many commands.
When a batch file is run, the shell program (usually COMMAND.COM or cmd.exe) reads the file and executes its commands, normally line-by-line. Batch files are useful for running a sequence of executables automatically and are often used to automate repetitive or tedious processes. DOS batch files have the filename extension .bat.
Note that SCSI and IDE functionality is limited in Windows 10.
The general format of commands:
DTCommandLine.exe <Command> [options]
The angle and square brackets are not a part of the command. Command keywords must be preceded by a hyphen or two (depends on what command you use), options must be put in quotes.
Commands
-a or --add
Adds an optical virtual device.
Syntax: --add --type "arg"
Options:
- -t or --type: "dt", "scsi" or "ide".
Example (extended): DTCommandLine.exe --add --type "dt"
Example (simplified): DTCommandLine.exe -a -t "dt"
-m or --mount
Creates and mounts an optical virtual drive with an image file, or simply mounts an image to existing virtual drive.
Syntax: --mount --type "arg" --letter "arg" --pass "arg" --ro --path "arg"
Options:
-
t or type: "dt", "ide" or "scsi". Parameter <type> can not be used with *.iscsi, *.vhd, *.tc, *.vmdk and *.zip files.
-
l or letter: device letter. The <letter> parameter is optional. If it is not specified, the first free letter will be used by default. Parameter <letter> can not be used for *.iscsi files.
-
pass: password for crypted *.tc and *.hc files.
-
ro: mount as read-only.
-
p or path: path to image file.
Example (extended): DTCommandLine.exe --mount --letter "K" --pass "123" --ro --path "f:\test.tc"
Example (simplified): DTCommandLine.exe -m -l "K" --pass "123" --ro -p "f:\test.tc"
-u or --unmount
Unmounts an image from a virtual drive.
Syntax: --unmount --letter "arg"
Options:
- l or letter: device letter
Example (extended): DTCommandLine.exe --unmount --letter "M"
Example (simplified): DTCommandLine.exe -u -l "M"
-U or --unmount_all
Unmounts all currently mounted images.
Syntax: --unmount_all
Example (extended): DTCommandLine.exe --unmount_all
Example (simplified): DTCommandLine.exe -U
-g or --get_count
Gets number of virtual devices.
Syntax: --get_count --type "arg"
Options:
- t or type: "hdd" , "dt", "scsi" or "ide". Type of devices you need to count. If no type is specified, you'll see the total quantity of devices as a result.
Example (extended): DTCommandLine.exe --get_count --type "dt"
Example (simplified): DTCommandLine.exe -g -t "dt"
-h or --help
Displays brief help on command line parameters.
Syntax: --help
Example (extended): DTCommandLine.exe --help
Example (simplified): DTCommandLine.exe -h