Jump to content

_rundos


Recommended Posts

  • Developers

if u use _rundos

can u get the errorlevel of the prog you ran

Is it not working as described in the Helpfile ?

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

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

Link to comment
Share on other sites

  • Developers

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

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

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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...