Could be that the name of the file is confusing the OS into running the file
rather than the telnet program itself:

First question - do you want to run this in a 'cmd' window, or as a windows
task
For the first use a .bat or .cmd file for the script and just name the
process (perhaps with directory and .exe
For the second - see the start command, and perhaps the windows host
scripting facility with .vbs and .wsh files

JimB

----- Original Message ----- 
From: "Pete Holsberg" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Friday, April 07, 2006 3:15 PM
Subject: Running a batch file from Windows


> I'd like to set up a batch file that can be saved on the desktop to invoke
a single command
>
> telnet smtpserver 25
>
> I did this but when I click it, I get
>
> <path_to_desktop> telnet smtpserver 25
> <path_to_desktop> telnet smtpserver 25
> <path_to_desktop> telnet smtpserver 25
> <path_to_desktop> telnet smtpserver 25
> <path_to_desktop> telnet smtpserver 25
> <path_to_desktop> telnet smtpserver 25
> <path_to_desktop> telnet smtpserver 25
> <path_to_desktop> telnet smtpserver 25
>
> ad infinitum.
>
> How do I get this to behave?
>
> Thanls
>
> --
>                 ----------------------------------------
> The WIN-HOME mailing list is powered by L-Soft's renowned
> LISTSERV(R) list management software. For more information, go to:
> http://www.lsoft.com/LISTSERV-powered.html
>
>

--
                ----------------------------------------
The WIN-HOME mailing list is powered by L-Soft's renowned
LISTSERV(R) list management software. For more information, go to:
http://www.lsoft.com/LISTSERV-powered.html

Reply via email to