johnisotank
Technical User
Hi All,
I am trying to make a program which will shutdown a PC.
I have the following code:
This does set off the shutdown process but if there are any programs running then some of them just hang and the system never actually shuts down.
Is there a switch to say "Force all programs to close"?
Thanks
John
I am trying to make a program which will shutdown a PC.
I have the following code:
Code:
Call Shell("Shutdown /s") 'to shutdown
This does set off the shutdown process but if there are any programs running then some of them just hang and the system never actually shuts down.
Is there a switch to say "Force all programs to close"?
Thanks
John