>Forgot to include Stanley on this.
>
>>>Do you know, is it possible from VB Script? It would satisfy his request, I believe.
>>
>>Nope, no Win32 API calls from WSH, AFAIK. The best suggestion I could offer would be to write an EXE in C++ and deploy that. Something like
>>#include
>>#include
>>void main(){
>> ExitWindowsEx(EWX_SHUTDOWN, 0); // Second param is ignored
>>}
Thanks, I was thinking about it too.
#include <winuser.h>
#include <windows.h>
void main(){
ExitWindowsEx(EWX_SHUTDOWN, 0); // Second param is ignored
}
If it's not broken, fix it until it is.
My Blog