SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
@V"file" syntax error

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
@V"file" syntax error
Author Message
Paul Messink



Joined: 23 Apr 2004
Posts: 6

Post @V"file" syntax error Reply with quote

I'm running version 3.4.17.

I'm trying to use the name of a trigger file
in my script. However, the @V macro is
generating a syntax error.

Even a script with this one line is failing:

messagebox @V"file"

The job is setup as type
"When certain files are found", and
the job is firing correctly.

Any suggestions?

Thu Nov 18, 2004 11:30 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7969

Post Re: @V"file" syntax error Reply with quote

Try
messagebox "@V"file""

@V"file" is just a substitute in run-time replaced with the actual value. So if you have a file C:\Program Files\My Program\Data\file.txt and you use @V"file" without surrounding double-quotes you would get the following in run-time

messagebox C:\Program Files\My Program\Data\file.txt

This in turn will cause script syntax errors. With double-quotes you would get
messagebox "C:\Program Files\My Program\Data\file.txt" which is ok.

: I'm running version 3.4.17.

: I'm trying to use the name of a trigger file
: in my script. However, the @V macro is
: generating a syntax error.

: Even a script with this one line is failing: messagebox @V"file"

: The job is setup as type
: "When certain files are found", and
: the job is firing correctly.

: Any suggestions?

Thu Nov 18, 2004 12:33 pm View user's profile Send private message
Paul Messink



Joined: 23 Apr 2004
Posts: 6

Post Re: @V"file" syntax error Reply with quote

I had already tried that format.

I'm also getting a syntax error in this:

dim str, string
set str, "@V"file""
messagebox str

: Try
: messagebox "@V"file""

: @V"file" is just a substitute in run-time replaced with the actual
: value. So if you have a file C:\Program Files\My Program\Data\file.txt and
: you use @V"file" without surrounding double-quotes you would get
: the following in run-time

: messagebox C:\Program Files\My Program\Data\file.txt

: This in turn will cause script syntax errors. With double-quotes you would
: get
: messagebox "C:\Program Files\My Program\Data\file.txt" which is ok.

Thu Nov 18, 2004 12:46 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7969

Post Re: @V"file" syntax error Reply with quote

Sorry, it is @V"files" not @V"file"

: I had already tried that format.

: I'm also getting a syntax error in this: dim str, string
: set str, "@V"file""
: messagebox str

Thu Nov 18, 2004 1:22 pm View user's profile Send private message
Paul Messink



Joined: 23 Apr 2004
Posts: 6

Post Re: @V"file" syntax error Reply with quote

Ah, thanks. The help file for 3.4.17 is incorrect.

: Sorry, it is @V"files" not @V"file"

Thu Nov 18, 2004 2:56 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.