 |
SoftTree Technologies
Technical Support Forums
|
|
Author |
Message |
LeeD
Joined: 17 May 2007 Posts: 311 Country: New Zealand |
|
Files macro parameter |
|
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 |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7952
|
|
|
|
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 |
|
 |
LeeD
Joined: 17 May 2007 Posts: 311 Country: New Zealand |
|
|
|
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 |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7952
|
|
|
|
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 |
|
 |
LeeD
Joined: 17 May 2007 Posts: 311 Country: New Zealand |
|
|
|
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 |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7952
|
|
|
|
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 |
|
 |
|
|
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
|
|
|