Borje Posted November 21, 2019 Share Posted November 21, 2019 (edited) Hi What I am doing wrong here I can not have this to hide the window when I run it? the @SW_HIDE) not works. ShellExecute("ipconfig.exe","/renew *",@SW_HIDE) ; switch on Edited November 21, 2019 by Borje Link to comment Share on other sites More sharing options...
Subz Posted November 21, 2019 Share Posted November 21, 2019 Try using something like Run(@ComSpec & " /c ipconfig /renew", "", @SW_HIDE) Link to comment Share on other sites More sharing options...
Borje Posted November 21, 2019 Author Share Posted November 21, 2019 Many thanks Subz that works perfect.. Link to comment Share on other sites More sharing options...
Musashi Posted November 21, 2019 Share Posted November 21, 2019 15 minutes ago, Borje said: ShellExecute("ipconfig.exe","/renew *",@SW_HIDE) ; switch on For the sake of completeness only (the optional parameters were set incorrectly) : ShellExecute("ipconfig.exe","/renew", "", default, @SW_HIDE) ; switch on "In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move." 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