Sign in to follow this  
Followers 0
Qual-IT London

_rundos

7 posts in this topic

if u use _rundos

can u get the errorlevel of the prog you ran

Share this post


Link to post
Share on other sites



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

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

No

I 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                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

No

I 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

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

yeh

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0