From 24x7 run your EXE using a batch a file or a script job. In the bathc/script set some environment variable that your EXE can read. If the variable is set to some "flag" value your EXE would know it is run from 24x7, otherwise it is run manually or from some other place. Note that the variable value is local and available only for the same process tree. Example batch file SET myflag=YES myEXE.exe : I have a number of EXE that can be ran either by 24x7 or manually byt a user. : I want to have the programs run interactivley if they arent run via 24x7 and : silent in they are run by 24x7. I have looked through the COM documentation : but : cant see to find a way to have the EXE detect if it is beign ran by 24x7 or : not : have i over looked something ? : (The EXE's are VB.net on XP) : many thanks : Graham
|