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"

-M or --mount_to

Mounts existing optical virtual drive with an image file.

Syntax: --mount_to --letter "arg" --pass "arg" --ro --path "arg"

Options:

  • -l or --letter: device letter.

  • --pass: password for crypted *.tc, *.hc files.

  • --ro: mount as read-only device.

  • -p or --path: path to file.

Example (extended): DTCommandLine.exe --mount_to --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 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

-R or --remove_all

Removes all virtual devices.

Syntax: --remove_all

Example (extended): DTCommandLine.exe --remove_all

Example (simplified): DTCommandLine.exe -R

-s or --set_count

Sets quantity of optical virtual devices.

Syntax: --set_count --type "arg" --number "arg"

Options:

  • -t or --type: "dt", "scsi" or "ide".

  • -n or --number: number of virtual devices to be set. (Maximum number of allowed devices depends on "Unlimited Devices" feature state.)

Example (extended): DTCommandLine.exe --set_count --type "dt" --number 5

Example (simplified): DTCommandLine.exe -s -t "dt" -n 5

-G or --get_letter

Returns a letter assigned to an optical virtual device.

Syntax: --get_letter --type "arg"

Options:

  • -t or --type: "dt", "scsi" or "ide".

  • -n or --number: device number.

Example (extended): DTCommandLine.exe --get_letter --type "dt" --number 1

Example (simplified): DTCommandLine.exe -g -t "dt" -n 1

-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

Note: if you haven't purchased the Unlimited Devices feature, you'll be able to add up to 4 devices.