Guyz, I know very well this are the codes to shutdown n restart windows....But wat iz the code to log-out Windows???
Restart:
Runtime.getRuntime().exec("shutdown -r -t 0");
Shutdown:
Runtime.getRuntime().exec("shutdown -s -t 0");
Printable View
Guyz, I know very well this are the codes to shutdown n restart windows....But wat iz the code to log-out Windows???
Restart:
Runtime.getRuntime().exec("shutdown -r -t 0");
Shutdown:
Runtime.getRuntime().exec("shutdown -s -t 0");
ok ok....got it....just replace -s or -r with -l.....:afrog: :afrog: :afrog:
Please mark the thread resolved if your problem is solved
You can do this from the "Thread Tools" menu