Qual-IT London 0 Report post Posted March 8, 2006 if u use _rundos can u get the errorlevel of the prog you ran Share this post Link to post Share on other sites
Jos 1,291 Report post Posted March 8, 2006 if u use _rundoscan u get the errorlevel of the prog you ranIs it not working as described in the Helpfile ? Visit the SciTE4AutoIt3 Download page for the latest versions - Beta files How to post scriptsource Forum Rules Live for the present, Dream of the future, Learn from the past. Share this post Link to post Share on other sites
Xenobiologist 35 Report post Posted March 8, 2006 Hi, isn´t that enough? #include <Process.au3> $rc = _RunDos("ipconfig") MsgBox(0,"", $rc ) So long, Mega Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times Share this post Link to post Share on other sites
Qual-IT London 0 Report post Posted March 8, 2006 No I think becoz im running START.EXE and not the app? $erlv = _RunDos ("start /wait " & chr(34) & "Console" & chr(34) & " /wait robocopy ................. Share this post Link to post Share on other sites
Jos 1,291 Report post Posted March 8, 2006 NoI think becoz im running START.EXE and not the app?$erlv = _RunDos ("start /wait " & chr(34) & "Console" & chr(34) & " /wait robocopy .................Don't think this would work in a batch file either ... right ?Start is running a new commandshell so i doubt if that can return the errorlevel ... Visit the SciTE4AutoIt3 Download page for the latest versions - Beta files How to post scriptsource Forum Rules Live for the present, Dream of the future, Learn from the past. Share this post Link to post Share on other sites
Xenobiologist 35 Report post Posted March 8, 2006 NoI think becoz im running START.EXE and not the app?$erlv = _RunDos ("start /wait " & chr(34) & "Console" & chr(34) & " /wait robocopy .................Hmmh,and when you start the exe in a bat file and catch the errorlevel with echo %errorlevel%, does that work?Maybe that´s an idea?So long,Mega Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times Share this post Link to post Share on other sites
Qual-IT London 0 Report post Posted March 8, 2006 Hmmh,and when you start the exe in a bat file and catch the errorlevel with echo %errorlevel%, does that work?Maybe that´s an idea?So long,Megayeh Share this post Link to post Share on other sites