SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
Files macro parameter

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
Files macro parameter
Author Message
LeeD



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

Post Files macro parameter Reply with quote
Hi
Does the macro_parameter @v"Files" result in a list of the full paths including the names or just the names?
Tue Aug 19, 2008 12:53 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7952

Post Reply with quote
Full path.

Note: this macro only works for file watches having specific file names referenced in the watch list. If you use file masks in the watch lists, use DirEx within the job script or notification script to find which files have names matching the watch mask.
Tue Aug 19, 2008 1:06 am View user's profile Send private message
LeeD



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

Post Reply with quote
So if using a mask the mask itself will turn up in @v"files"? Or what it resolved to?
Tue Aug 19, 2008 1:09 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7952

Post Reply with quote
I guess the macro will simply return an empty string as there are no specific files that triggered the action. The event is not triggered by a specific file, the event is triggered by the system indicating that there are some files that much the mask, which could be a single file, or could be many files.
Tue Aug 19, 2008 8:56 am View user's profile Send private message
LeeD



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

Post Reply with quote
Sorry thats not quite what I was getting at; if I use a mask in the file watch ie c:\*.txt and that triggers the job will the @V"files" parameter read *.txt or file.txt, filetwo.txt?

If it's the latter then it's difficult to use the direx parameter.
Tue Aug 19, 2008 6:10 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7952

Post Reply with quote
Neither. My testing shows that it returns an empty string.. If you need the actual file name with path, you can use DirEx."c:\\*.txt", var_files
Tue Aug 19, 2008 7:13 pm 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.