Re: Shutdown computer with message
- From: Real Gagnon <realgag+usenet@xxxxxxxxxxxxx>
- Date: Thu, 30 Aug 2007 21:42:54 GMT
christopher_board@xxxxxxxxxxx wrote in news:1188509418.398860.228520
@q4g2000prc.googlegroups.com:
It doesn't seem to like a shutdown message with spaces in.
Try to put each element of your command line in an array.
Something like
String[] cmd = { "myProgram.exe", "-o=This is an option" };
Runtime.getRuntime().exec(cmd);
Bye.
--
Real Gagnon from Quebec, Canada
* Java, Javascript, VBScript and PowerBuilder code snippets
* http://www.rgagnon.com/howto.html
* http://www.rgagnon.com/bigindex.html
.
- References:
- Shutdown computer with message
- From: christopher_board
- Shutdown computer with message
- Prev by Date: Shutdown computer with message
- Next by Date: Re: Newbie - JAR question
- Previous by thread: Shutdown computer with message
- Next by thread: Re: Shutdown computer with message
- Index(es):
Relevant Pages
|