CEHJ,
The code is partilally woking for me.
But i have a problem here.I am getting an error "Windows cannot find putty.Make sure you typed the name correctly, and then try again."
Usually i get this error when the "start putty" is invoked in a directory where putty.exe is not present.I am not sure from which directory the "Runtime.getRuntime().exec
So please help me with the option to invoke this command with a specified path where putty.exe is present.For example if putty.exe is in the path "C:/Documents and settings/dinesh/desktop", please provide me the command to start putty from the given path.
Thanks
Main Topics
Browse All Topics





by: CEHJPosted on 2009-07-05 at 14:18:49ID: 24781344
You need to do
String.for mat("cmd.e xe /c start putty -load %s -l %s -pw %s", "session1", userid, pw));
avaworld/j w-12-2000/ jw-1229- tr aps.html
Runtime.getRuntime().exec(
But see particularly:
http://www.javaworld.com/j