Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21344

How do i log off a computer?

$
0
0
Hi everyone
I'm trying to code a program that shuts down, restarts or logs off a computer. So far everything works except log off. I'm using a windows 7 computer and the code for the log off button is this:

Private sub cmdLogOff_Click
shell "shutdown -l -f -t 00"
End sub

Any help would be greatly appreciated

Viewing all articles
Browse latest Browse all 21344

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>