Jump to content
Sign in to follow this  
MikeJohansen

Shellexecute CMD parameter.

Recommended Posts

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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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 ?

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  

×
×
  • Create New...