2012/7/3 Devang Patel <devangnp@xxxxxxxxx> > Hello Experts, > > I have putty.exe on my desktop so if I will go to command prompt and then > to C:\Documents and Settings\user\Desktop location and execute following > command it will launch the Putty window of telnet connection to server > specified: > > putty.exe telnet://10.3.215.15/ > > > > I am trying to launch the putty to telnet to specific server using > following but its not working for me: > > <?php > $securecrt = "C:\\Documents and Settings\\user\\Desktop\\putty.exe > telnet:// > 10.3.215.15/ "; > > > exec($securecrt); > ?> > > If I try following then it launches the putty application but will have to > provide the host name or IP to login: > > <?php > $securecrt = "C:\\Documents and Settings\\user\\Desktop\\putty.exe "; > > > exec($securecrt); > ?> > > Not sure if I am missing something very basic, It will be great if someone > can help with this. > > Thanks, > Devang > Try Putting an extra " at the beginning and the end of the string. you have a white space in the exec call and it will chop of the string after it. $securecrt = "\"C:\\Documents and Settings\\user\\Desktop\\putty.exe telnet:// 10.3.215.15/\""; -- ********************************************** Hans Åhlin Tel: +46761488019 icq: 275232967 http://www.kronan-net.com/ irc://irc.freenode.net:6667 - TheCoin **********************************************