Re: logoff/shutdown script

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Thank you so much Omar. I really appreciate this. I barely know
anything at all about VB so this really helps me out a lot and puts me
in a good place.

I have another question for anyone out there who knows the answer. I
emailed a friend of a friend with the same plea for script help and
she told me that I would have to incorporate API calls to the Windows
logoff/shutdown function in order for my script to work. I found two
websites that list the calls. <http://jalaj.net/2007/01/25/system-
shutdown-windows-api-functions/> is more thorough but <http://
explorewindows.com/Blogs/?p=91> is more succcint. Would I have to
write my code somewhat like this:

if process.name = "vmware-vmx.exe" then
alert user
cancel shutdown (insert API calls here)
end if


.