quote:Originally posted by Don YonceThe tools simply lauch "telnet" where ever it is the the PATH environment variable.So... many customer rename Telnet.exe to OldTelnet.exe and place Telnet.cmd or Telnet.bat in it's place.The Telnet.bat then calls whatever telnet.exe or ssh.exe program instead.Since you cannot just simply rename telnet.exe because the Windows OS will automatically replace it from one in dllcache.(It's a little harder than simply renaming it)A better method would be to modify the PATH environment variable to include a directory that you place telnet.bat in.This way, the telnet.bat is run instead of telnet.exe.
Here is a script I wrote (with the help of BKelly www.adminscripteditor.com) to redirect telnet calls to SecureCRT. Admin Script Editor also compiles this to an EXE file. Of course I called it telnet.exe. i am sure you guys can greatly imporve on this as I am just a rookie at VBScript.
TomTinsley, CCNA, MCSE
Dim var1, strcmdSet WshShell = WScript.CreateObject("WScript.Shell")Set objFSO = CreateObject("Scripting.FileSystemObject")Set objEnv = WshShell.Environment("Process")crtPath = "C:\Progra~1\VanDyk~1\Clients\SecureCRT.exe"var1 = objEnv("ASEEXEARGS")If var1 = "" Then var1 = "127.0.0.1" End IfIf Not objFSO.FileExists(crtPath) Then MsgBox "Cannot find SecureCRT in C:\Program Files\VanDyke Software\Clients\SecureCRT.exe.", 0, "File Not Found" WScript.QuitEnd Ifstrcmd = crtPath & " " & "/telnet" & " " & var1
WshShell.Run strcmd, 0, False