Jump to content
Sign in to follow this  
Qual-IT London

_rundos

Recommended Posts

Qual-IT London

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

if u use _rundos

can u get the errorlevel of the prog you ran

Is 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

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

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

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                                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

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
Qual-IT London

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.