How to use ROUTE DELETE and ADD command to batch file!

Discussion in 'MCSA' started by weiw, Dec 15, 2003.

  1. weiw

    weiw Guest

    Hi, dear all,
    I encounter a problem when I adminstering my network.
    On the PC, I can manually key in ROUTE DELETE and ADD
    command in the DOS prompt. But when I add these commands
    to a batch file. it cannot run.
    Why? Could you tell me how to do to let it can be used in
    batch file?

    weiw, Dec 15, 2003
    1. Advertisements

  2. weiw

    Marko Guest

    Not sure what you are doing wrong, but my batch file
    worked first time I tried it. Likely you need a current
    directory (CD\) type command or your syntax is bad.

    In any case, you are probably needing a batch because your
    routes dissappear after a reboot? So use the "-p" flag to
    make it persistent.
    Marko, Dec 16, 2003
    1. Advertisements

  3. weiw

    weiw Guest

    Hi, Marko,
    Thanks for your help. Yeah, I forgot to add "CD\" in my
    batch file. when I add it, it runs properly. Thanks a lot.
    weiw, Dec 17, 2003
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.