Script Generator

[Top]  [Previous]  [Next]

The Script Generator tab lets you use scripts without having to do any programming. You can open the Script Generator from the Virtual CD in the CD Control Center, or under Virtual CD Programs in the Quick Start utility.

 

vcdscgen

 

The Type of script to be generated section defines the type of script that will be written. Under Script type you can choose from the following:

Insert virtual CDs: The virtual CDs specified are inserted in virtual CD drives by this script type.
Eject virtual CDs: The virtual CDs specified are ejected from virtual CD drives by this script type.

 

The List of all virtual CDs to be processed by this script shows the virtual CDs that have been added to the script, and the corresponding settings. These are the CDs that will be inserted or ejected when the script is executed. The buttons above this list let you modify the content:

Add: Opens a dialog for adding a virtual CD to the list.
Snapshot: Creates a list showing which virtual CDs are currently in which drives; in other words, a "Snapshot".
Edit: Opens a dialog for selecting the virtual CD drive in which you want to insert the selected virtual CD. Note: This button is active only after you have selected a virtual CD in the list.
Remove: Removes the selected virtual CD from the list.
Up: Moves the selected entry one position higher in the list.
Down: Moves the selected entry one position lower in the list.

 

tipp

The order in which virtual CDs are listed here determines the order in which they will be inserted or ejected by the script. For an application that extends over multiple CDs, for example, the CD with the "autorun" program must be placed at the end of the list.

 

Double-click on a virtual CD, or click on the Edit button, to open a dialog showing virtual CD properties you can edit. The changes you define here will be implemented when the script runs.

 

vcdscgenProperties

 

You can define the following here:

the drive in which the virtual CD will be inserted.
whether Virtual CD will attempt to suppress the autorun function.
whether the comment for the virtual CD is displayed.

 

If you select "Show comment about the virtual CD," the image properties dialog opens, showing the Comment page, when the virtual CD is inserted.

 

tipp

The comment for a virtual CD can contain information that is important for running the program, such as the program serial number for an installation program. This is a handy way to make sure this information is available when the CD is inserted.

 

hinweis

The only property you can edit in a script that ejects virtual CDs is the drive.

 

You can choose from the following options for your script:

Eject all virtual CDs: The script ejects all virtual CDs from all drives before inserting the specified virtual CDs.
Register unknown virtual CDs: If the script inserts a virtual CD that is not registered in your Virtual CD program, you can use this setting to define whether that CD is shown (registered) in the CD Control Center once it has been inserted.
Prompt for confirmation before executing: If you select this option, a window opens before the script runs, showing a description of the actions to be carried out and asking for confirmation from the user. The user can either allow or cancel execution of the script.
Stop if API error occurs: With this option activated, occurrence of an API error causes the script to stop running.

 

If you want to have a certain program run automatically when the virtual CDs are inserted or ejected, configure the following in the Application to be executed section:

Program: The application you wish to run.
Run as Administrator: Executes the specified program with administrative rights. This setting is relevant only if the user account control is active (Vista or later).
Arguments: Arguments for the specified program.
Working directory: The directory in which the application will run.
Program window: Lets you define the window in which the program is opened: choose from normal, minimized or maximized.
After the program closes: If the program closes while the script is running, you can specify here what happens to the virtual CDs inserted by this script: whether they remain in their drives or are ejected, or whether all virtual CDs are ejected from all drives.

 

After you have entered the desired virtual CDs in the list and defined any settings you require, you can click Test to test the functions before the final script is generated.

 

Once your settings are complete, click on Generate to have the script created. This opens a dialog in which you can enter a target directory and file name for the script. If you selected Create a desktop shortcut, the Script Generator creates an icon on the desktop that you can double-click to execute the script.

 

hinweis

When you enter a name for your script, keep in mind that Virtual CD programs (such as the CD Control Center and the Quick Start utility) list only the scripts that are stored in the Virtual CD folder designated for scripts. (This is also the default folder, used automatically when you enter a file name for your script without specifying a path.)