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")
|