Batch files not working

I am trying to create a logoff.bat. When I run it in cmd it works just fine.

All it says is "shutdown -l".

For some reason, this shuts down my pc, instead of logging off, like it does in cmd prompt.

Any body know why?
1 answer Last reply
More about batch files working
  1. have you tried "shutdown /l"?
Ask a new question

Read More

Configuration Command Prompt Shutdown Windows 7