 |
SoftTree Technologies
Technical Support Forums
|
|
Author |
Message |
LeeD
Joined: 17 May 2007 Posts: 311 Country: New Zealand |
|
File watch on variable |
|
Hi
Trying to do a filewatch on a file containing an system environment variable. Is this string formatted correctly?
c:\@v"env:%procdate%".txt
procdate is the system env variable.
Also I'm correct in saying I can't file watch using a global variable right?
Cheers
Lee
|
|
Wed Jul 02, 2008 9:23 pm |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7949
|
|
|
|
@V is case-sensitive and %% signs around variable name are not needed
 |
 |
c:\@V"env:PROCDATE".txt |
|
|
Wed Jul 02, 2008 11:49 pm |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7949
|
|
|
|
In regard to global variable, yes you are correct, global variables can be only referenced in JAL scripts.
But... you can always make a script to update an environment variable and that one you can use in a file-watche.
 |
 |
Call "kernel32.dll", "SetEnvironmentVariableA", "SS", False, "PROCDATE", GLOBAL.my_var |
|
|
Thu Jul 03, 2008 12:00 am |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|