Logoff using the script
-
I need to logoff a systme by running the script. As per my Knowledge the user32.dll library should be included in the Script and it funciton exitwindow sholud be called with unflag value set to zero.But i saw similar code in Visual Basic code from the site VBnet.com . Please help me out to do same thing with vbscript.
Praveen
-
I need to logoff a systme by running the script. As per my Knowledge the user32.dll library should be included in the Script and it funciton exitwindow sholud be called with unflag value set to zero.But i saw similar code in Visual Basic code from the site VBnet.com . Please help me out to do same thing with vbscript.
Praveen
VBScript cannot do this like the code you've seen. It has no facility to make calls into the Win32 API like in your example. It can, however, use WMI to do the same this using the Win32_OperatingSystem[^] class.
Dave Kreskowiak Microsoft MVP - Visual Basic