MikeJohansen Posted May 30, 2014 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 ?
Solution strongy Posted May 30, 2014 Solution 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')
MikeJohansen Posted May 30, 2014 Author 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
strongy Posted May 30, 2014 Posted May 30, 2014 You will also need a space before the /k ShellExecute(@ComSpec,' /k at ' & $iConstHib & ' Shutdown /h')
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