sosimple Posted January 18, 2007 Share Posted January 18, 2007 Hi I have this in a .bat file start /wait rasphone -h "AccessRunner DSL" whitch when i run it , it disconnect the usb adsl modem . Whow can I do it to run with automate? I have search the forum for hours , but i havent made it. Please help, Thank Link to comment Share on other sites More sharing options...
Developers Jos Posted January 18, 2007 Developers Share Posted January 18, 2007 Whow can I do it to run with automate?Assume you mean AutoIt3 ? Hi I have this in a .bat file start /wait rasphone -h "AccessRunner DSL" whitch when i run it , it disconnect the usb adsl modem . Whow can I do it to run with automate? I have search the forum for hours , but i havent made it. Please help, Thank RunWait(@Comspec & ' /c start /wait rasphone -h "AccessRunner DSL"') 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 More sharing options...
flyingboz Posted January 18, 2007 Share Posted January 18, 2007 Hi I have this in a .bat filestart /wait rasphone -h "AccessRunner DSL"whitch when i run it , it disconnect the usb adsl modem .Whow can I do it to run with automate? I have search the forum for hours , but i havent made it.Please help, Thanklook at RunWait()I believe that there is also a _RunDOS() UDF that attempts to hide some of the complexities from you.or you can use Run() and call the .bat file directly. (recommend switching to .cmd extension if you are using w2k or above)You will not need the start / wait portion of the line when called via au3.You are probably getting tripped up on one of three issues: the afore-mentioned fact that you won't need start /wait, unless you call the batch file directly you will need to handle the @comspec /c syntax spaces and quotes make for some potentially complex command lines.use consolewrite() or msgbox() to display what you're trying to send to the shell to debug. Reading the help file before you post... Not only will it make you look smarter, it will make you smarter. Link to comment Share on other sites More sharing options...
sosimple Posted January 18, 2007 Author Share Posted January 18, 2007 Assume you mean AutoIt3 ? RunWait(@Comspec & ' /c start /wait rasphone -h "AccessRunner DSL"') Thanks !!! It works very well Link to comment Share on other sites More sharing options...
sosimple Posted January 18, 2007 Author Share Posted January 18, 2007 If there is a solution not to open the dos windows to do the same it would me tha best. If anyone knows this. Thanks again Link to comment Share on other sites More sharing options...
herewasplato Posted January 18, 2007 Share Posted January 18, 2007 RunWait(@ComSpec & ' /c start /wait rasphone -h "AccessRunner DSL"', "", @SW_HIDE) [size="1"][font="Arial"].[u].[/u][/font][/size] Link to comment Share on other sites More sharing options...
sosimple Posted January 18, 2007 Author Share Posted January 18, 2007 RunWait(@ComSpec & ' /c start /wait rasphone -h "AccessRunner DSL"', "", @SW_HIDE)Thank, I think this will do , I will try it, thanks again all. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now