1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

Need help creating a batch file

Discussion in 'Tech Tips and Reviews' started by vdsag, Oct 2, 2008.

Thread Status:
Not open for further replies.
  1. vdsag

    vdsag Thread Starter

    Oct 2, 2008
    Hello Guys,

    I am new creating batch files and im trying to create a batch file that fixes my PC routing table while conecting to VPN, here is the details:

    I got stuck while trying to using two diferent variables from diferent files in a command ex.

    route add "text from file1" "test from file 2"

    here is the code that i am trying to work with:

    @echo off

    if exist error.txt del error.txt >NUL
    ipconfig | FIND "IPv4 Address. . . . . . . . . . . : 14" > ip.txt

    for /f "tokens=14 delims= " %%a in (ip.txt)do call :pROCESS m=%a

    route delete mask %1


    What i want is to use the destination ips coming from an outside file to look something like this

    route delete %1 %2

    Please help
  2. JohnWill

    JohnWill Retired Moderator

    Oct 19, 2002
    Please do not post multiple threads on the same issue, you already have one in Networking.
As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Similar Threads - Need help creating
  1. ekim68
Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/755388

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice