cag8f Posted February 1, 2014 Share Posted February 1, 2014 I'm experiencing some unexpected behavior from an Autoit-invoked command prompt. I can open a command prompt using: Run("C:\WINDOWS\SYSTEM32\CMD.EXE") After the Autoit script has finished, and the command prompt window still exists, I can run some commands like ipconfig and cd.. without issue. However if I try to ping ('ping www.google.com'), a 2nd command prompt appears to try to open, then is immediately closed. Furthermore, this repeats itself infinitely to the point where I have to reset/logoff Windows (Win 7 32 bit) in order to kill those processes (task manager will not do it). Anyone know why this is happening? FYI this issue also occurs if I open the command prompt using Run(@ComSpec & " /K " & 'commandName', "", @SW_MAXIMIZE) . Link to comment Share on other sites More sharing options...
Developers Solution Jos Posted February 1, 2014 Developers Solution Share Posted February 1, 2014 let me guess: You compiled your script and it is called "Ping.au3" ? Jos Palestinian 1 SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Palestinian Posted February 1, 2014 Share Posted February 1, 2014 #RequireAdmin Run("C:\WINDOWS\SYSTEM32\CMD.EXE") WinWaitActive("Administrator") Send('ping www.google.com') Send("{ENTER}") Works just fine Link to comment Share on other sites More sharing options...
cag8f Posted February 1, 2014 Author Share Posted February 1, 2014 Thanks JOS. Yes I named my file Ping.au3, which obviously conflicts with an Autoit function. I renamed mine and the issue was resolved. Link to comment Share on other sites More sharing options...
Developers Jos Posted February 1, 2014 Developers Share Posted February 1, 2014 Thanks JOS. Yes I named my file Ping.au3, which obviously conflicts with an Autoit function. I renamed mine and the issue was resolved. It conflicts with the dos command Ping.exe and basically start shelling itself indefinitely. Jos Werty 1 SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. 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