No. But you can create a job to be run on scheduler startup that can set envionment variables from global variable. The job can actually run at any time, it is probably more convininet to do this on startup. Please also note that tyhese environment variables will be only seen in 24x7 and child processes including jobs. To set an environment variable dynamically you can use do like the following Dim command, string Dim temp, number ConcatEx "SET my_env_var=", GLOBAL.my_glob_var, "\r\n", command FileSave "temp.bat", command RunAndWait "temp.bat", "", 0, number FileDelete "temp.bat" : I have a number of jobs that are triggered when files arrive. I run these : jobs on different machines that have different directories where the files : are FTP'd to. : Right now, I have hard-coded the path name in each of the jobs but I am : wondering if I can use a global variable in the semaphore file name to : indicate the path? : I know in in v3.4.9, you can use environment variables in semaphore file : names but I would like to be able to use a global variable in the file : name. Is this possible? : e.g. something like: @V"global.ImportFilesDir"\cnexport.dat
|