Creating Log off shortcut

Im sure this has been asked before, so before this thread gets closed, i need some advice on how to do it?

Im able to create a shortcut to the Logoff command, by using the follwing shortcut:

C:Windows system32shutdown.exe -l -t 0

However, when i run the shortcut, for a second it shows a the DOS console window then logs off

Is thier anyway to avoid the popup of the DOS console window when running this shortcut.

#365353

How long is a second? You could look into cmdow (Google it, and use "cmdow @ hid" in the bat file) to hide it for most of the time.

-NC

#365514