Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: batch file to run telnet and type in commands for me?  (Read 16944 times)

0 Members and 1 Guest are viewing this topic.

xenomorphuk

    Topic Starter


    Greenhorn

    batch file to run telnet and type in commands for me?
    « on: December 06, 2008, 08:41:59 PM »
    i want to be able to run the .bat file and have it type out a load of commands in telnet for me.
    how can i do this?
    thanks

    Jacob



      Hopeful

      Thanked: 1
      • Experience: Expert
      • OS: Windows XP
      Re: batch file to run telnet and type in commands for me?
      « Reply #1 on: December 07, 2008, 01:39:52 AM »
      In command prompt type in telnet /?

      xenomorphuk

        Topic Starter


        Greenhorn

        Re: batch file to run telnet and type in commands for me?
        « Reply #2 on: December 07, 2008, 06:21:49 AM »
        this just shows me some commands i can use in telnet.
        i need to know how to write this in the .bat file so that when i click on it, it will conduct it for me

        i start with c:\windows\system32\telnet.exe
        is this right?

        basically i want to be able to click on my .bat file and have it use telnet to send an email.
        using the commands in telnet:
        open smtp.dsl.pipex.com 25

        mail from:<[email protected]>

        rcpt to:<[email protected]>

        you get me?

        thanks

        Jacob



          Hopeful

          Thanked: 1
          • Experience: Expert
          • OS: Windows XP
          Re: batch file to run telnet and type in commands for me?
          « Reply #3 on: December 07, 2008, 07:04:24 AM »
          Code: [Select]
          @echo off
          telnet command
          pause >nul
          And so on...

          xenomorphuk

            Topic Starter


            Greenhorn

            Re: batch file to run telnet and type in commands for me?
            « Reply #4 on: December 07, 2008, 07:24:15 AM »
            sorry but i am confused
            i am an absolute beginner in using cmd's

            should it look like this? because it doenst appear to work

            c:\windows\system32\telnet.exe
            @echo off
            telnet open smtp.dsl.pipex.com
            mail to:<[email protected]>
            pause >nul

            Jacob



              Hopeful

              Thanked: 1
              • Experience: Expert
              • OS: Windows XP
              Re: batch file to run telnet and type in commands for me?
              « Reply #5 on: December 07, 2008, 08:22:01 AM »
              There is no need for the c:\windows\system32\telnet.exe
              As for telnet commands, you will need someone elses help.