MikeJohansen Posted May 27, 2014 Share Posted May 27, 2014 Hi, Sorry if this is a "Noob" question but i can't get it to work -.- in my world it's fairly simple, but what i want is to start CMD with parameters. Func Internetsettings() MsgBox(48,"Pinging...") ShellExecute("cmd",'"Ping 127.0.0.1 -t"') EndFunc Why is that not working, according to the "Help" tool this should work. Link to comment Share on other sites More sharing options...
jguinch Posted May 27, 2014 Share Posted May 27, 2014 MsgBox has minimum 3 parameters. CMD should be run with an option. Func Internetsettings() MsgBox(48,"", "Pinging...") ShellExecute("cmd",'/c Ping 127.0.0.1 -t') EndFunc Spoiler Network configuration UDF, _DirGetSizeByExtension, _UninstallList Firefox ConfigurationArray multi-dimensions, Printer Management UDF Link to comment Share on other sites More sharing options...
MikeJohansen Posted May 27, 2014 Author Share Posted May 27, 2014 Ah perfect that works, now when i wanted to have a option to do Ipconfig too it just quits as fast as it starts up. is there no way to set a "wait" parameter ? ShellExecute("cmd",'/c ipconfig -wait') or something like that ? Link to comment Share on other sites More sharing options...
Solution jguinch Posted May 27, 2014 Solution Share Posted May 27, 2014 Execute cmd /? in you dos console and read the parameters descriptions Spoiler Network configuration UDF, _DirGetSizeByExtension, _UninstallList Firefox ConfigurationArray multi-dimensions, Printer Management UDF Link to comment Share on other sites More sharing options...
MikeJohansen Posted May 27, 2014 Author Share Posted May 27, 2014 Lol okay Thanks so basically Just /k instead 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