User Guide

65
4.2 Using the Command Line for Creating Shortcuts to Run
VCDs
Using the command line syntax for VirtualDrive® is a powerful way of
automating repetitious tasks.
The basic syntax is described below:
Each command starts with the term "VDrive." A virtual drive can be
referenced by its drive letter, (e.g. E:, F:, G:) or a number corresponding to
the position of the virtual drive. For example, if drives E, F and G are virtual
drives, then drive F can be referred to as “2:”. Once a virtual drive is
referenced, you can then issue a command to tell VirtualDrive® what to do
next.
Available commands are:
1. Vdrive <drive letter:> <VCDfilename> /I [@cmd] [/M] [/NA] => Insert VCD
2. Vdrive <drive letter:> /E [/M] => Eject VCD
If successful, returns 0, otherwise 1.
3. VDrive /drive: Returns the number of virtual drives available
Note: Commands shown in square brackets [ ] are optional.
4. /I Insert a VCD
5. /E Eject a VCD
6. [/M] Show message
7. [@<path><filename>] Run a program on the VCD. To use this, you
must include the full path showing the location of the program to be run
and the name of the executable file.
Using the command line for creating shortcuts to run VCDs
Using command line instructions is an ideal way to create customized
shortcuts to run your VCDs.
Step 1 - Write down what you want the shortcut to do, e.g. Vdrive E:
"C:\VCDCollection\Age of Kings" /I @E:\Age.exe
Note: - The dot shows where a blank space must be inserted.
The above example, read from left to right works as follows:
Vdrive -tells Windows that the following commands will be
executed by Vdrive program.
E: -selects virtual drive E: