speedi Posted October 22, 2008 Share Posted October 22, 2008 When I am debugging a runwait command, how can I keep the DOS command window open so I can see what errors might have occurred?? The window closes so fast I can't read it... Thanks! Link to comment Share on other sites More sharing options...
Developers Jos Posted October 22, 2008 Developers Share Posted October 22, 2008 (edited) assuming you are using @ComSpec: just change the /C to /K Edited October 22, 2008 by Jos 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...
speedi Posted October 22, 2008 Author Share Posted October 22, 2008 assuming you are using @ComSpec: just change the /C to /KThese lines are not using @comspec --- they are like this: Run("C:\WINDOWS\SYSTEM32\XXCOPY.EXE " etc. etc.Can I use @comspec for this line??? Thanks! Link to comment Share on other sites More sharing options...
PsaltyDS Posted October 22, 2008 Share Posted October 22, 2008 These lines are not using @comspec --- they are like this: Run("C:\WINDOWS\SYSTEM32\XXCOPY.EXE " etc. etc. Can I use @comspec for this line??? Thanks! How about: Run(@COMSPEC & "/k C:\WINDOWS\SYSTEM32\XXCOPY.EXE C:\Temp1\*.* C:\Temp2", @TempDir, @SW_SHOW) Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
Bert Posted October 22, 2008 Share Posted October 22, 2008 In DOS, you can add the command "Pause" to the end, and you can see the error. for example, if you wish to edit a autoexec.bat file, you could put the followingc:\dos\loadhigh.exe pauseFor DOS, the "Pause"command will pause the script until you press a key. this way you can see what is happening. More information here:http://www.computerhope.com/pausehlp.htm The Vollatran project My blog: http://www.vollysinterestingshit.com/ 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