MikeJohansen Posted May 30, 2014 Share Posted May 30, 2014 What is the correct syntax to make a shellexecute command with a constant string text. ShellExecute("cmd",'/k at ' & $iConstHib & 'Shutdown /h') This does not work apparently Any thoughts ? Link to comment Share on other sites More sharing options...
Solution strongy Posted May 30, 2014 Solution Share Posted May 30, 2014 Hi Mike, try the following.. Note: cmd replaced with @ComSpec and a space before the Shutdown command ShellExecute(@ComSpec,'/k at ' & $iConstHib & ' Shutdown /h') Link to comment Share on other sites More sharing options...
MikeJohansen Posted May 30, 2014 Author Share Posted May 30, 2014 Hahaha i must be stressed, i totally forgot to put a space before Shutdown...... oh well thanks for your help Seeker Link to comment Share on other sites More sharing options...
strongy Posted May 30, 2014 Share Posted May 30, 2014 You will also need a space before the /k ShellExecute(@ComSpec,' /k at ' & $iConstHib & ' Shutdown /h') 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