Regarding remote PC shutdown

hi,
guys,
can u tell me how can i shutdown remote PC.
not LOCAL PC.
pls tell me…
thanks.
div

Hi div,

There is already a thread on shutdown PC’s. Windows XP has it’s own shutdown.exe command - you just have to know what parameters to pass to it… and yes you can shutdown remote computers with it (if and only if you are the Administrator)

=====

try {
Runtime.getRuntime().exec(“shutdown -m \computername -s -f -t 20”);
}
catch(IOException e) {
System.err.println(e);
}

=====

hope this helps

Martyn

Dear freinds
i tried this one in my XP system with a LAN xp system but it is not working.Can anyone tell me y so
thank u

Arun,

Your post is not helpful. Please post some of your code so I can see what you are trying to do.

Also, do you have Administrator rights on the other machine? If not, then you won’t be able to shutdown the other computer.

Martyn

Hi,

could you please help me how can i lock desktop and desk top would not be activate until cancel lock.

thank
shofiq