Русский

DAEMON Tools HOME
DAEMON Tools FORUM

Command Line Parameters

Warning: For experienced users only!

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.

The general format of commands:

DTLite.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 part of the command. Before option keywords preceded by a hyphen and multiple parameters are separated by commas.

Commands

  • -add

    Increments number of virtual devices, returns number of virtual devices or -1 if error. Parameterless.

    Syntax: -add <type>
    
    <type>: "dt" or "scsi"
    
    Example: DTLite.exe -add scsi
    
  • -set_count

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

    Syntax: -set_count <type>,<n>
    
    <type>: "dt" or "scsi"
    <n>:    device number ('1' - '2' allowed)
    
    Example: DTLite.exe -set_count scsi, 1
    
  • -mount

    Mounts a virtual drive with an image file:

    Syntax: -mount <type>,<n>,<path>
    
    <type>: "dt" or "scsi"
    <n>:    device number
    <path>: path to image file
    
    Example: DTLite.exe -mount scsi, 0,"C:\My Images\name_of_image.ape"
    

    Note 1: You can point only 0 or 1 number in the <n> parameter. The numeration starts from zero.

  • -unmount

    Unmounts a virtual drive.

    Syntax: -unmount <type>,<n>
    
    <type>: "dt" or "scsi"
    <n>:    device number
    
    Example: DTLite.exe -unmount scsi, 0
    
  • -unmount_all

    Unmounts all currently mounted images, returns 0 in case operation's result is OK or -1 in case it is FAILED. Parameterless.
  • Example: DTLite.exe -unmount_all
    
  • -remove

    Decrements number of devices, returns number of virtual devices or -1 if error.

    Syntax: -remove <type>,<n>
    
    <type>: "dt" or "scsi"
    <n>:    device number
    
    Example: DTLite.exe -remove scsi, 0
    
  • -get_letter

    Gets 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>: "dt" or "scsi"
    <n>:    device number
    
    Example: DTLite.exe  -get_letter scsi, 1
    
  • -get_count

    Gets number of virtual devices, returns devices quantity or -1 in case of error. Parameterless.

    Syntax: -get_count <type>
    
    <type>: "dt" or "scsi"
    
    Example: DTLite.exe -get_count scsi
    
  •