Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

help needed

  • 27-06-2001 10:14PM
    #1
    Registered Users, Registered Users 2 Posts: 2,051 ✭✭✭


    Lads,

    I need help with a (prbably) simple thing.
    I need a scrip that will do the following:
    - Open a DOS box
    - run the following command: "telnet 192.168.1.85"

    I presume that someone here can do this for me?



Comments

  • Registered Users, Registered Users 2 Posts: 21,264 ✭✭✭✭Hobbes


    just put "telnet 192.168.1.85" in a batch file or shortcut and double click it.



  • Moderators, Science, Health & Environment Moderators Posts: 9,220 Mod ✭✭✭✭mewso


    I don't like it. It's too easy.


  • Registered Users, Registered Users 2 Posts: 21,264 ✭✭✭✭Hobbes


    <font face="Verdana, Arial" size="2">Originally posted by musician:
    I don't like it. It's too easy.</font>

    1. open dos Box.
    2. type "copy con tellynetty.bat"
    3. Type the following into it.
    @echo off
    set TELNET=telnet
    set DEFADDR=192.168.1.85
    if %1. == . goto default
    set ADDR=%1
    goto main
    :default
    set ADDR=%DEFADDR%
    :main
    echo @start /W %TELNET% %ADDR% &gt; %TEMP%\runtel.bat
    if exist %TEMP%\runtel.bat call %TEMP%\runtel.bat
    if exist %TEMP%\runtel.bat del %TEMP%\runtel.bat
    goto end
    :end
    

    Is that any more complicated for you? wink.gif
    [note: It was intentional]

    or you could type instead
    @telnet 192.168.1.85
    

    4. Press CTRL-Z to save the batch file.
    5. run Tellynetty.bat


    [This message has been edited by Hobbes (edited 28-06-2001).]


Advertisement