SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
File watch on variable

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
File watch on variable
Author Message
LeeD



Joined: 17 May 2007
Posts: 311
Country: New Zealand

Post File watch on variable Reply with quote
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 View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7949

Post Reply with quote
@V is case-sensitive and %% signs around variable name are not needed

Code:
c:\@V"env:PROCDATE".txt

Wed Jul 02, 2008 11:49 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7949

Post Reply with quote
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.

Code:
Call "kernel32.dll", "SetEnvironmentVariableA", "SS", False, "PROCDATE", GLOBAL.my_var

Thu Jul 03, 2008 12:00 am View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
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


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.