Get error message from Command prompt



Hi all.

I am currently trying to develop a java applicatio that will enable me
to shutdown or restart computers remotely. I am doing this by using
the command prompt code in order to perform the shutdown. For example
I am using shutdown -m \\computer name -r -f -t 30.

When I run this code in the command prompt and the computer cannot be
found on the network it comes up with a message saying that the
network path was not found. How can I read in the error message that
the command prompt provides from within my Java Application.

Any help in this matter would be highly appreciated.

Thank you

.



Relevant Pages

  • Re: Get error message from Command prompt
    ... the command prompt code in order to perform the shutdown. ... found on the network it comes up with a message saying that the ... the command prompt provides from within my Java Application. ...
    (comp.lang.java.help)
  • Re: Adding CMD to right click on desktop
    ... You could also set the Power Options to do "Shutdown" when you press Power Button. ... Having a command prompt may or may not make a difference, but it would be nice to know. ... I could program in a batch file to run the shutdown command to perform a clean restart. ... adding static context menu items to the Desktop is not possible in Windows 9x/XP. ...
    (microsoft.public.windowsxp.general)
  • RE: Having trouble setting up 4OD
    ... Right-click Command Prompt and choose Run as administrator from the ... instead I got a message saying: ... failed with the error code 0x80004005 ... For more information about this problem search online using the error ...
    (microsoft.public.windows.vista.installation_setup)
  • Re: Boot Win XP Home too long
    ... Open a command prompt and type or paste: ... >> I don't honestly know of a way to make the batch file run at shutdown ... >> to try to run it at boot. ...
    (microsoft.public.windowsxp.perform_maintain)
  • Re: Very slow shutdown
    ... > help...4 min shutdown time. ... I assume the UPHClean service is installed correctly and shows ... problem for me) was to stop the Spooler: ... start the Spooler again (Command Prompt): ...
    (microsoft.public.win2000.general)