Link to home
Create AccountLog in
Avatar of Nitin Shah
Nitin ShahFlag for India

asked on

how to log off computer windows 8.1 or windows 10 (64 bit) in vb6 application.

i want to log off computer after each 2 hours of processing how can i log off in windows 8.1 or windows 10 ( 64 bit)  node.
i have try  Shell "shutdown -l -t 00" but it is not working,

Thanks in advance.
ASKER CERTIFIED SOLUTION
Avatar of Pawan Kumar
Pawan Kumar
Flag of India image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Another option could be from the Power options from the control panel.
SOLUTION
Avatar of arnold
arnold
Flag of United States of America image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Avatar of Nitin Shah

ASKER

Thanks for Kind Help
I have made batch file as follows

@echo off
c:
cd\windows\system32
shoutdown /l

exceuted above batch file shell mode.

Thanks