Code to Log-out Windows?

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");
[258 byte] By [raggya] at [2007-11-27 9:02:06]
# 1
Well this surely is not a Java Related question however...Runtime.getRuntime().exec("logoff"); should work with WINDOWS XP.
RahulSharnaa at 2007-7-12 21:32:27 > top of Java-index,Java Essentials,Java Programming...
# 2
oh thanx bro.....Anywayz...I just tried replacin -r or -s with -l and itz workin very well....Wat do u guyz think?
raggya at 2007-7-12 21:32:27 > top of Java-index,Java Essentials,Java Programming...
# 3
> oh thanx bro.....Anywayz...I just tried replacin -r> or -s with -l and itz workin very well....Wat do u> guyz think?At first I thought your "s" key was broken and you were improvising by using the "z" key, but I see you can type "-s".
BigDaddyLoveHandlesa at 2007-7-12 21:32:27 > top of Java-index,Java Essentials,Java Programming...