Sign in to follow this  
Followers 0
andygo

_RunDos

6 posts in this topic

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



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

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

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

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

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