SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
@V"files" does not return wildcard?

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
@V"files" does not return wildcard?
Author Message
Eric Davis



Joined: 31 Jan 2005
Posts: 54

Post @V"files" does not return wildcard? Reply with quote

using @V"files" to pull the name of the actual file that triggered the job.

The trigger is set up to be : \\server\directory\*.pdf

it seems to fail when i use a wildcard, but not when i specify a single file.

My searching seems to indicate it should work with a wildcard...?

BTW, it is still wrong in the documentation -- @V"file" instead of @V"files" -- 3.4.26

Tue Jan 24, 2006 3:20 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7910

Post Re: @V"files" does not return wildcard? Reply with quote

With a wildcard it should return comma-separated list of files whose matches the wildcard. In case of a single ile it will return just one name.

I will do some testing here and will get back to you.

: using @V"files" to pull the name of the actual file that triggered
: the job.

: The trigger is set up to be : \\server\directory\*.pdf

: it seems to fail when i use a wildcard, but not when i specify a single file.

: My searching seems to indicate it should work with a wildcard...?

: BTW, it is still wrong in the documentation -- @V"file" instead of
: @V"files" -- 3.4.26

Tue Jan 24, 2006 4:13 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7910

Post Re: @V"files" does not return wildcard? Reply with quote

Yes I can reproduce that issue locally. I recall somebody reporting this issue a while ago and I am sure we had a fix for it, which I am still trying to locate.

: With a wildcard it should return comma-separated list of files whose matches
: the wildcard. In case of a single ile it will return just one name.

: I will do some testing here and will get back to you.

Tue Jan 24, 2006 6:03 pm View user's profile Send private message
Eric Davis



Joined: 31 Jan 2005
Posts: 54

Post Re: @V"files" does not return wildcard? Reply with quote

: Yes I can reproduce that issue locally. I recall somebody reporting this
: issue a while ago and I am sure we had a fix for it, which I am still
: trying to locate.

That would be helpfull, thanks

Thu Jan 26, 2006 8:27 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7910

Post Re: @V"files" does not return wildcard? Reply with quote

After a long search I found out that the fix was provided in one of the earlier versions but then lost. This a regression bug.

I can suggest the following simple workaround.
In place of @V"files" with a file mask, if it is in a script job use the following

Dim myfile, string
Dim myfile2, string
Dim temp, string

DirEx "c:\\source_dir\\*.pdf", myfile
FileSplitName myfile, temp, myfile2
Concat "c:\\target_dir\\", myfile2, myfile2
FileMove myfile, myfile2

Set the job not to move or rename the file automatically as it will be done through the script. The myfile2 variable will hold the full name of the file after it is moved out of the source directory.

: That would be helpfull, thanks

Tue Jan 31, 2006 11:59 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.