Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

re faq222-75 ??? errors

Status
Not open for further replies.

psybertek

Technical User
Mar 26, 2002
30
US
Hello all,
I tried using the code in the faq 222-75, it's supposed to reboot or shut down an nt machine. I keep getting errors pertaining to the public / private module types. I am not sure where to place this code so that it will work.

I am trying to create an EXE file that will shut my win2k machine down from the task scheduler. After finding the faq I thought it would be relatively simple, I Don't know what I was thinking (laughing @ self).

I just need it to do a graceful shutdown. (ie) as if I had clicked start --> shutdown --> shutdown. inveriably I fall asleep and forget to shut my system down.

any help would be greatly appreciated.

[alien] Psybertek [alien]
-----------------------------------------
"Computer junkies never die, They Just upload."
 
Problem with that is if you have any applications running and they prompt to save then your machine wouldn't shut down either.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top