DOS Commands

Discussion in 'Windows 7 Help and Support' started by FlashHarry, May 19, 2009.

  1. FlashHarry

    FlashHarry New Member

    Joined:
    May 19, 2009
    Messages:
    18
    Likes Received:
    0
    Hi,

    Was trying add a persistent route via the dos line i.e.

    c:\route add 192.10.12.0 mask 255.255.255.0 192.10.11.254 -p

    but on execution all the os kept on saying is

    c:\the request operation requires elevation

    am in local and domain admin groups, connected to the network etc etc


    any ideas?
     
  2. davehc

    davehc Microsoft MVP
    Premium Supporter Microsoft MVP

    Joined:
    May 1, 2008
    Messages:
    5,116
    Likes Received:
    301
    Right click the command prompt and "run as Administrator"
    I am sure you know more than me - it is sometime since I needed to perform a static route. But I think the -p goes first in the line??
     
    #2 davehc, May 19, 2009
    Last edited by a moderator: May 19, 2009
  3. FlashHarry

    FlashHarry New Member

    Joined:
    May 19, 2009
    Messages:
    18
    Likes Received:
    0
    thanks dave,

    you were right although I was doing it wrong, firstly I was using run, then cmd to get to the DOS Prompt (this is wrong as it will not give you a run as admin option from here)

    Basically the work around was

    1. create shortcut to cmd.exe
    2. right click shortcut and select run as administrator
    3. enter the command line as above (yes -p is in the right place :))
    sorted.... thanks!
     

Share This Page

Loading...