Run Commands
Start Kill Process Launch Document MS-DOS Command Control Panel App Manage AutoRuns Start Service Stop Service Service Startup Type Send Command Call DLL Function Call Script |
| *Tip:
vTask displays the icon of the .EXE program in the Step List.
If the icon of the program is not properly displayed, then the path of program may not be correct.
|
Start
| notepad |
| notepad.exe |
| C:\WINDOWS\NOTEPAD.EXE |
| {windir}\NOTEPAD.EXE |
| %WINDIR%\NOTEPAD.EXE |
| c:\path\document.txt |
| notepad c:\path\document.txt |
| notepad.exe c:\path\document.txt |
| C:\WINDOWS\NOTEPAD.EXE c:\path\document.txt |
| *Tip:
Is your program or document not starting correctly?
Check the Output toolbox for a description of why it failed.
All methods that vTask employs for starting programs and documents are listed there, along with success or failure results.
|
| *Tip:
To start a program maximized or minimized, first launch the program with the Run Program command,
and then use the Window command with the "Minimize" or the "Maximize" option.
|
Kill Process
Launch Document
MS-DOS Command
CMD [/A | /U] [/Q] [/D] [/E:ON | /E:OFF] [/F:ON | /F:OFF] [/V:ON | /V:OFF]
[[/S] [/C | /K] string]
/C Carries out the command specified by string and then terminates
/K Carries out the command specified by string but remains
/S Modifies the treatment of string after /C or /K
/Q Turns echo off
/D Disable execution of AutoRun commands from registry
/A Causes the output of internal commands to a pipe or file to be ANSI
/U Causes the output of internal commands to a pipe or file to be
Unicode
/T:fg Sets the foreground/background colors (see COLOR /? for more info)
/E:ON Enable command extensions
/E:OFF Disable command extensions
/F:ON Enable file and directory name completion characters
/F:OFF Disable file and directory name completion characters
/V:ON Enable delayed environment variable expansion using ! as the
delimiter. For example, /V:ON would allow !var! to expand the
variable var at execution time. The var syntax expands variables
at input time, which is quite a different thing when inside of a FOR
loop.
/V:OFF Disable delayed environment expansion.
Control Panel App

Manage AutoRuns
| Option | Description |
| "Add" | Creates a new AutoRun entry. The program or document will automatically start up when the PC is logged in. |
| "Remove" | Deletes an existing AutoRun entry from the registry.
The program or document can be obtained by using the "List All" option described below.
You can pass either the AutoRun name, such as "Notepad", or the full EXE path, such as "C:\Windows\Notepad.exe". Also, vTask will find the entry if it is either HKEY_CURRENT_USER or HKEY_LOCAL_MACHINE. |
| "Remove All" | Deletes all AutoRun entries on the PC. No programs or documents will be started on the PC (for those that are listed in the registry). See note above about using Sysinternals Autoruns to remove other programs which are not located in the registry. |
| "List Entries" | Retrieves the AutoRun entries in the registry. The format is one entry per line:
Tasker=C:\Program Files\Tasker\Tasker.exe CALC=C:\WINDOWS\system32\calc.exe |
Start Service
Stop Service
Service Startup Type
Send Command
| *Tip:
Be sure to use the "Use Window" action before using Send Message.
Since WM_COMMAND is window-based, a window must be active before it will work.
|
|
Displays the Help - About screen for Calculator: Step #1: Start Program "CALC.EXE" Step #2: Use Window "Calculator" Step #3: Post WM_COMMAND: 302 |
Call DLL Function
| *Tip:
Be sure to see the "How to Use a Dynamic Link Library (DLL)" help file entry.
|
|
DLL Module: "C:\WINDOWS\SYSTEM32\USER32.DLL" Function: "GetSystemMetrics( 1 )" |
Call Script
