error not redirected to a file

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vijivinod
    New Member
    • Apr 2009
    • 3

    #1

    error not redirected to a file

    Hi ,
    I use the netsh command to set a static ip and redirect the output to a file.I execute the command from windows command prompt.
    When i try to set the ip already in use it throws an error message in a dialogue
    box and the error message is not redirected to the file.The file is created in the correct location and only OK message is written there.

    The command i use :

    netsh interface ip set address "Local Area Connection" static 169.254.160.2 255.255.0.0 169.254.160.2 1 > file1.txt

    please let me know how to redirect this message to the file.


    Thanks,
    Viji
Working...