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.
You can use following commands and parameters to operate DAEMON Tools Lite from command line (console) or to create a batch file.
The general format of commands:
DTAgent.exe -[Command [options]]
The contents of the square brackets is an optional part of the command, you may use it but don't have to. The square brackets are not a part of the command. Multiple parameters are separated by commas, hyphen is used before some options.
-mount: mounts the selected image file to the virtual drive.
Syntax: -mount type, letter, opt, path, where
- type is "dt" or "scsi". VHD, VMDK, TrueCrypt and ZIP files are mounted to HDD virtual device by default, so you don't need to use this parameter for the abovementioned range of file types.
- letter is a device letter which will be assigned to the created virtual drive. If this parameter is not used, then the first available letter will be used.
- opt is an optional parameter for VHD and TrueCrypt files only. Use "ro" if an image you want to mount should be mounted as read-only.
- path is a path to the needed image.
Example: DTAgent.exe -mount, dt, F, "D:\Images\SomeImage.iso"
-unmount: unmounts the selected virtual drive.
Syntax: -unmount letter , where
- letter is a letter of the virtual device you want to eject.
Example: DTAgent.exe -unmount F
-unmount_all: unmounts all emulated virtual devices.
Example: DTAgent.exe -unmount_all
-get_count: gets a number of created virtual devices.
Example: DTAgent.exe -get_count
-help: shows the short guide about all available commands.
Example: DTAgent.exe -help