quote:
Originally posted by matty
quote:
Originally posted by scripto
ActiveXOBject
Correct me if I am wrong but I am sure this is case sensitive...
Javascript code:
new ActiveXObject('WScript.Shell').exec('C:\\Windows\\system32\shutdown.exe -s -t 60');
IIRC it is. Also, you don't need the path as matty has shown, but it may help.
@matty: You forgot to double slash before "shutdown" and the "s" in "Shell" <in the op> wasn't in the correct case either.