Returns: The value returned by MESSAGEBOX indicates which button was selected, as shown in the following table.
Value Meaning

-1 User did not respond to the dialog box within the specified time-out period.

etc.... as in the manual and posted above.

Do you really want to SHUTDOWN the computer or just log them off? You should also silence your commands so they don't show the 1 and 0 from running commands.

Shutdown is only on XP/2003 if you have 2000 Workstations then by default they won't have that command.


You also should not need any external app to map a drive.