jslegers Posted September 2, 2005 Posted September 2, 2005 Hi, I want to make a script that monitors a screen. When this shuts down it must start the program again. Ik the link properties of the program there is a working dir. But when I use the run command with workingdir it doesn't work. What am I doing wrong ? Here is the script. ;Options AutoItSetOption("WinTitleMatchMode", 3) ;Begin of the while loop. While 1=1 ;Wait for Concerto Rijswijk Centrale is closing WinWaitClose("Rijswijk Centrale") ;Starting Concerto Rijswijk Centrale Run ("d:\alsprog\newapp\alswish\alswish.exe" , "d:\alsprog\newapp\WWW") ;Wait for 4 seconds Sleep(4000) ;Closing of the loop Wend
jpm Posted September 2, 2005 Posted September 2, 2005 not sure what's wrong may be the alswish.exe program itself. Difficult to help you without the specific program and the knowlegde of what it is doing :">
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now