KatoXY Posted February 9, 2011 Share Posted February 9, 2011 Hello everybody, Below I put a modified part of my script. I run application sleep30s.exe on Desktop12 computer in use psexec program from my computer. When I run it then appear CommandPrompt Window with title \\Desktop12: sleep30s.exe The problem is in the next step. Installation sleep30s.exe last about 45seconds and depends on network speed. I have to pause execution of the script until the CommandPrompt Window is closed During pause I would show splash text "Installation in progress..." Have you any idea? $line=string("Desktop12") ;Run(@ComSpec & " /c " & 'ping -n 7 ' & $line ) Msgbox(0,"Online","Computer is online") Sleep(2000) Run(@ComSpec & " /c " & 'psexec \\' & $line & ' -c -w %windir%\PE C:\DATA\sleep30s.exe') SplashTextOn("Sleep", "Installation in progress in " & $line) WinExists("\\" & $line & ": sleep30s.exe","") SplashOff() Msgbox(0,"Sleep","Installation finished") Link to comment Share on other sites More sharing options...
jvanegmond Posted February 9, 2011 Share Posted February 9, 2011 WinWaitClose? github.com/jvanegmond Link to comment Share on other sites More sharing options...
KatoXY Posted February 9, 2011 Author Share Posted February 9, 2011 WinWaitClose? I am sure I checked WinWaitClose earlier. I've just replaced with WinExists and its working!Probably I made a mistake in syntax. Key that is already running. Thank you Link to comment Share on other sites More sharing options...
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