• Post Reply Bookmark Topic Watch Topic
  • New Topic

Process hanging  RSS feed

 
Alejandro Barrero
Ranch Hand
Posts: 376
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
RESOLVED. I have to use "cmd /c ipconfig -all > " + filePath"
The following code hangs at "runProcess = Runtime.getRuntime().exec(command);" when I run it:

The command "ipconfig -all > D:\MISC\ipconfig.txt" runs fine in a DOS window. However, the following similar code runs fine
 
Campbell Ritchie
Marshal
Posts: 56570
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Never go anywhere near Runtime.exec() until you have read the article by Michael Daconta, "When Runtime.exec() won't".
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!