Lauching a local program from a hyperlink within a spreadsheet or document.
Posted on 2003-12-09
How do I launch a program (i.e. - telnet.exe) via a hyperlink within an Excel spreadsheet?
I've tried many values under the Insert>Hyperlink (Ctrl-K) area, such as:
start C:\WINNT\system32\cmd.exe /C "telnet 10.110.235.90"
cmd telnet 10.110.235.90
cmd /c telnet 10.110.235.90
C:\WINNT\system32\cmd.exe /C "telnet 10.110.235.90" (with and without quotes)
C:\WINNT\system32\cmd.exe /C "telnet 10.110.235.90" (with and without double back slashes between directories)
After saving the spreadsheet, all of the above methods display this error when clicking on the link:
Cannon open the specified file.
When I use just:
C:\Winnt\system32\telnet.exe, by itself, I get this message:
Some files can contain viruses or otherwise be harmful to your computer.
It is important to be certain that this file is from a trustworthy source.
Would you like to open this file?
Clicking [OK] will open cmd at a telnet prompt, but I would like to bypass this prompt to go directly to the login screen.
I would prefer to have the IP parameter passed on the command, rather than taking two steps to get to my login screen.
Who can help me at the simple level, without getting into coding and massive registry changes?