Another good method (and probably better one) is to use some .INI file. This will let you change program names and directories even without going to 24x7. You can also use glabl search and replace to change their names. Dim FTPFiles123, string IniFileGetKey("c:\\24x7\\settings.ini", "Programs", "My FTP program", FTPFiles123) RunAndWait FTPFiles123, .... : You can do something like the following: 1. Create a job that runs "on : 24x7 startup" : // Declare global variable (in the script it must appear on one line) : Dim global.ROOT, string, : "c:\\path\\to\\root\\directory\\where\\I\\keep\\my\\programs\\" : 2. In all other script jobs: Dim exe_name, string, "myprogram.exe" : Concat global.ROOT, exe_name, exe_name : RunAndWait exe_name, .... : This way you will need to change just one script in one place should you ever : move your executables to some other place. : Use same tehnique. : In the "startup" job, establish names then use global variables : instead of program names : For example : Dim global.FTPFiles123, string, : "c:\\path\\to\\root\\directory\\where\\I\\keep\\my\\programs\\" : In onther jobs: RunAndWait global.FTPFiles123
|