SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
syntax error

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
syntax error
Author Message
Michael Rozenbaum



Joined: 18 Dec 2000
Posts: 6

Post syntax error Reply with quote

below you will find script that i developed.
on line 11 i am receiving syntax error message, and i dont see any syntax error.
secondly:
befpre i desides to use concat statement, i was giving full path to the executable file, that i wanted to schedule to run.
i was getting error 267, wrong directory specified.
please help. what am i doing wrong.
thank you.

the script:

Dim window_handle, number
Dim process_handle,number
Dim (found_files,string)
Dim( is_empty, boolean, FALSE )
Dim( file_name, string )
Dim( full_file_name, string )

Dir("C:\My Downloads\atomicTime\AtomTime\*.exe",found_files)
isequal(found_files," ",is_empty)
gettoken(",",found_files,file_name)
Concat("C:\My Downloads\atomicTime\AtomTime\", file_name, full_file_name )

runandwait (full_file_name," ",10,process_handle)
ProcessGetWindow (process_handle,window_handle)
WindowClickButton (window_handle, "Check")
wait (5)
WindowClickButton (window_handle, "Adjust")
wait (5)
WindowClickButton (window_handle, "Exit")


Sun Dec 17, 2000 9:11 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7847

Post Re: syntax error Reply with quote

Replace all backslashes with double back-slashes. See "special ASCII characters" topic in the on-line help file. This is a FAQ.

In this particular case
Concat("C:\My Downloads\atomicTime\AtomTime\" ...
The very last \ in that line tells 24x7 to treat the next character as a double quote being part of the string and not as a string end marker.

: below you will find script that i developed.
: on line 11 i am receiving syntax error message, and i dont see any syntax
: error.
: secondly: befpre i desides to use concat statement, i was giving full path to
: the executable file, that i wanted to schedule to run.
: i was getting error 267, wrong directory specified.
: please help. what am i doing wrong.
: thank you.

: the script: Dim window_handle, number
: Dim process_handle,number
: Dim (found_files,string)
: Dim( is_empty, boolean, FALSE )
: Dim( file_name, string )
: Dim( full_file_name, string )

: Dir("C:\My Downloads\atomicTime\AtomTime\*.exe",found_files)
: isequal(found_files," ",is_empty)
: gettoken(",",found_files,file_name)
: Concat("C:\My Downloads\atomicTime\AtomTime\", file_name,
: full_file_name )

: runandwait (full_file_name," ",10,process_handle)
: ProcessGetWindow (process_handle,window_handle)
: WindowClickButton (window_handle, "Check")
: wait (5)
: WindowClickButton (window_handle, "Adjust")
: wait (5)
: WindowClickButton (window_handle, "Exit")

Mon Dec 18, 2000 9:23 am View user's profile Send private message
Michael Rozenbaum



Joined: 18 Dec 2000
Posts: 6

Post Re: syntax error Reply with quote

: Replace all backslashes with double back-slashes. See "special ASCII
: characters" topic in the on-line help file. This is a FAQ.

: In this particular case
: Concat("C:\My Downloads\atomicTime\AtomTime\" ...
: The very last \ in that line tells 24x7 to treat the next character as a
: double quote being part of the string and not as a string end marker.

thank you so much!

Mon Dec 18, 2000 11:38 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.