Jump to content
Sign in to follow this  
andygo

_RunDos

Recommended Posts

andygo

hello,

hope you can help me:

#include <Process.au3>
$rc = _RunDos("start Http://www.autoitscript.com")

does the script continues immediately with the next line or is it like "runwait" that the script pauses

until the _rundos command is finished?

thank you

Share this post


Link to post
Share on other sites
EndFunc

hello,

hope you can help me:

#include <Process.au3>
$rc = _RunDos("start Http://www.autoitscript.com")

does the script continues immediately with the next line or is it like "runwait" that the script pauses

until the _rundos command is finished?

thank you

If I'm not mistaken it just runs the command in a hidden dos window so I don't think it will wait. You should test it on what you're doing and you might have to check for other things to tell it if has completed or not.

EndFuncAutoIt is the shiznit. I love it.

Share this post


Link to post
Share on other sites
TwentyFourEyes

The script continues immediately so do something like this but I'm sure you know that already with 83posts =D

#include <Process.au3>
_RunDos("start http://www.autoitscript.com")
WinWaitActive("AutoIt Script Home")

Share this post


Link to post
Share on other sites
andygo

thanks for the fast reply, i will try it with this here:

RunWait(@ComSpec & " /c " & "start http://www.autoitscript.com", "", @SW_HIDE)

in a few minutes i will know if it works and i let you know.

Share this post


Link to post
Share on other sites
andygo

ok now the "problem" is solved. it was because of some space-characters in the dos-path-command.

Share this post


Link to post
Share on other sites
Valuater

Might want to have a look at ShellExecute()

8)


NEWHeader1.png

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.