English

DAEMON Tools HOME
DAEMON Tools FORUM

Command line integration

Usage: DTProAgent.exe -[Command [options]]

Commands

-mount
Mount a virtual drive with an image file:

Syntax: -mount <type>,<n>,<path>

<type>: "scsi" or "ide"
<n>:    device number
<path>: path to file

Example: DTProAgent.exe -mount ide, 0, "f:\test.iso"

Note 1: If <type> is not specified type will be automatically set to "scsi". IDE adapter type is allowed only in Pro Advanced edition.
Note 2: Maximum device number <n> of allowed SCSI devices depends on license type, maximum number of IDE devices is 4 (Pro Advanced edition only).

-unmount
Unmount a virtual drive.

Syntax: -unmount <type>,<n>

<type>: "scsi" or "ide"
<n>:    device number

Example: DTProAgent.exe -unmount ide, 0

-add
Increments number of virtual devices, returns number of virtual devices or -1 in case of error.

Syntax: -add <type>

<type>: "scsi" or "ide"

Example: DTProAgent.exe -add ide

-remove
Decrements number of devices, returns number of virtual devices or -1 in case of error.

Syntax: -remove <type>,<n>

<type>: "scsi" or "ide"
<n>:    device number

Example: DTProAgent.exe -remove ide, 0

-unmount_all
Unmounts all currently mounted virtual drives, returns 0 in case of successful operation result or -1 in case of error.

-get_letter
Get a letter assigned to a virtual device. Returns a letter number (0-A,1-B,2-C etc.) in case of success or -1 if any error occurred.

Syntax: -get_letter <type>,<n>

<type>: "scsi" or "ide"
<n>:    device number

Example: DTProAgent.exe -get_letter ide, 1

-get_count
Get number of virtual devices, returns devices quantity or -1 in case of error.

-set_count
Emulate number of virtual devices, returns 0 in case of successful operation result or -1 in case of error.

Syntax: -set_count <type>,<n>

<type>: "scsi" or "ide"
<n>:    number of virtual devices to be emulated

Example: DTProAgent.exe -set_count ide, 1

You can use all of these parameters in batch files:

DTProAgent.exe -get_count
echo %errorlevel%

%errorlevel% — environment variable will contain the operation result.