Click to See Complete Forum and Search --> : Need help with batch file


Skywalker DK
12-12-2001, 08:09 AM
Ok, here goes again.

Grizzly, I noticed you locked my post. If you would please look at the replies in the OS forum, then you would notice that I didn't get my question answered and that nobody really knows how to write such a script. I didn't mean to be rude by posting two places, but seeing as no-one knew how in the OS forum, I decided to post it here as well. So, here goes again http://www.sharkyforums.com/ubb/smile.gif

I need to create a batch file in Win98 / Win2k pro that can log on to my ISP via. telnet each time I boot. I normally use telnet.exe to log on. That is, open up run and type "telnet xxx.xxx.xxx.xxx yyy" where x is the IP and y the port. Then it will prompt me for username and password, just like when you connect to an FTP via. an MS-DOS Prompt.

Please help

Note : I post this in the Programming forum becuase I want to create a script.

------------------

T-Bird 1.2GHz (200 MHz bus)
ECS K7S5A
Asus V7700
512 MB PC133 RAM
SB Live! Value
Pioneer 16x DVD
IBM Deskstar 40GB 7200 RPM @ ATA/100
Dual boot Win98SE/Win2k Pro.

Grizzly
12-12-2001, 09:06 AM
Yeah sorry about that Skywalker, it's just our policy to keep people from posting the same thing all over the place. As long as you don't post this in OS again, than I'm happy http://www.sharkyforums.com/ubb/biggrin.gif

As far as an answer to your questions goes, from what I gather in the OS-forum responses, the problem you're running into is not the telnet attempt, but rather...you can't figure out a good way to auto-login / password so you never have to type it in again.

This might be a problem...and I'm wondering if the best solution might actually lie in a 3rd party telnet application. I really don't think the simplistic built-in Windows telnet app will be able to do this for you.

rock
12-12-2001, 09:44 AM
Grizzly brings up a good point. I had an old Telnet application called CommNet which did dialup and a couple other things too. You might want to try to dig this program or one similar to see if they have a solution to your scripting problem.

------------------
The price of freedom is high.

Skywalker DK
12-12-2001, 01:42 PM
No problem, and thanks for pointing a third party program out http://www.sharkyforums.com/ubb/smile.gif

But still, if anyone have experience with Windows Scripting, then now is the time to speak http://www.sharkyforums.com/ubb/wink.gif

------------------

T-Bird 1.2GHz (200 MHz bus)
ECS K7S5A
Asus V7700
512 MB PC133 RAM
SB Live! Value
Pioneer 16x DVD
IBM Deskstar 40GB 7200 RPM @ ATA/100
Dual boot Win98SE/Win2k Pro.