Launch Program: Example of cmd.exe

 In order to launch a program and complete a task, do the following:

  1. Enter the application name into the Application Name entry box.
  2. Enter the command line arguments to accomplish one task in the Command Line Arguments entry box.
  3. Set Window State, Thread Priority and Time to Wait as desired or accept the default settings
  4. Click Add to add this to the conversion task list

At this point you can run the single task you entered by clicking the Convert (or F5) button..

For a more complicated example, let us run the five commands in the table below as unified 'Conversion Job'.  To do this go through steps 1-4 for each Application Name/Command Line Argument pair. The entire job will accomplish the following:

1) Create a directory named TestDir on drive C;

2) Copy the file Sample1.TXT into the folder, and name it Copy1.TXT;

3) Rename the new file to CopyOfSample and save it as rich text format (*.RTF);

4) Delete the file Sample1.TXT from drive D;

5) Run a batch file named cmdline.BAT.

 

Application Name

Command Line Arguments

c:\windows\system32\cmd.exe

/c mkdir C:\TestDir

c:\windows\system32\cmd.exe

/c copy D:\Suzanne\Sample1.TXT C:\TestDir\Copy1.TXT

c:\windows\system32\cmd.exe

/c rename C:\TestDir\Copy1.TXT CopyOfSample.RTF

c:\windows\system32\cmd.exe

/c del D:\Suzanne\Sample1.TXT
(Note: you may include /P as a final argument and you will be prompted to confirm the deletion)

c:\windows\system32\cmd.exe

/c D:\Suzanne\cmdline.BAT

 

NOTE: CMD.EXE is sometimes called COMMAND.EXE, both located in the system folder (i.e. System32) folder of your operating system.

 

See Also:

Launch A Program