Echo Off

by [Published on 18 April 2016 / Last Updated on 18 April 2016]

Process automation

Echo Off

CLS

CD\myProgDir

myProg.exe

 

Above is an example of a common old batch file which automated the process of calling an executable file.  Batch files like this were eventually incorporated into “Menus” which in turn eventually became Graphic User Interfaces (GUI).

Today there are more advanced options which can accomplish this same automation and much more.  Following is an AHK example of process automation including some additional important features:

 

Run, myProg.exe [, WorkingDir, Max|Min|Hide|UseErrorLevel, OutputVarPID]

This AHK command basically will do the same thing as the old batch file.  It will Run “myProg.exe”.  However, that’s just the beginning.  For example, the last variable in the command line, OutputVarPID, stores the unique Process ID which is very important in a multi-user, multi-tasking environment.  


More to come...

See Also


Review and Comments

* Required field

The Author — Lauren Malhoit

Lauren Malhoit avatar

Lauren Malhoit has been in the IT field for over 10 years and has acquired several data center certifications. She has been writing for a few years for several different websites.

Latest Contributions

Featured Links