Damn I feel stupid 

From: Klint Price - ArizonaITPro [mailto:[EMAIL PROTECTED] 
Sent: June 26, 2008 3:26 PM
To: NT System Admin Issues
Subject: Re: batch route add

Assuming the file was called route.cmd or route.bat, when the script is run, 
the command prompt takes the first word of the line and is recalling the batch 
file instead of calling route.exe.  That is why renaming the file works because 
it is no longer calling itself. 

I imagine if he put route.exe in the script instead of just route, it would 
work fine too.  But using a reserved word as the name of the batch file is 
asking for problems, as Ara has found out.

Klint

Kurt Buff wrote: 
Uh - try

route -p add 216.83.186.48 mask 255.255.255.240 10.133.151.193

instead of

route add 216.83.186.48 mask 255.255.255.240 10.133.151.193 -p

On Thu, Jun 26, 2008 at 11:45 AM, Ara Avvali <[EMAIL PROTECTED]> wrote:
  
Hello everyone

I am trying to make a batch file that does route add for me

So I copied these lines in notepad, saved as ip.bat but it get stuck on
first line and loops. Any idea why?

route add 64.238.199.200 mask 255.255.255.248 10.133.151.193 -p
route add 216.83.186.48 mask 255.255.255.240 10.133.151.193 -p

~ Upgrade to Next Generation Antispam/Antivirus with Ninja!    ~
~ <http://www.sunbelt-software.com/SunbeltMessagingNinja.cfm>  ~

    

~ Upgrade to Next Generation Antispam/Antivirus with Ninja!    ~
~ <http://www.sunbelt-software.com/SunbeltMessagingNinja.cfm>  ~
  



~ Upgrade to Next Generation Antispam/Antivirus with Ninja!    ~
~ <http://www.sunbelt-software.com/SunbeltMessagingNinja.cfm>  ~

Reply via email to