title: Teach me on Telnet script
body: <p>Here is my situation. I am using a Motorola Canopy. Every time I shut down my PC or power off the modem, the ESN of my Canopy changes back from its default value.</p>
  
  <p>I have been running <code>telnet</code> again and again on boot-up to have my Internet connection working. I want a batch file to do the job so that I don't have to run <code>telnet</code> again and again. I am using Windows 7 32-bit.</p>
  
  <p>Here are the details:</p>
  
  <ul>
  <li>Canopy telnet is 169.254.1.1 (it has no password whatsoever)</li>
  <li>The ESN that I'm trying to place is db:68:d3</li>
  </ul>
  
  <p>Manually I can do it using this script:</p>
  
  <pre><code>telnet 169.254.1.1
  mac db:68:d3
  </code></pre>
  
  <p>and it's done..</p>
  
  <p>If someone here can help me and make me this script it will be a great help. I have made a simple script here, but the problem is it stops on <code>telnet</code>:</p>
  
  <pre><code>cd \
  rem .
  COLOR 0E
  @ECHO OFF
  cls
  ECHO Change ESN
  pause
  ECHO ARE YOU SURE YOU WANT TO PROCEED? 
  pause
  ECHO ARE YOU SURE?
  pause
  telnet 169.254.1.1 &gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;after this the script below doesn't follow.
  testing
  enable
  telnet+&gt; mac db:68:d3
  ECHO You have Changed ESN successfuly
  ECHO Done.
  Echo 
  </code></pre>