batch file problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • hsn
    New Member
    • Sep 2007
    • 237

    batch file problem

    hello everyone.
    i am working on some batch files for windows.
    i created a batch file which includes the following command
    Code:
    netsh interface ip set address "Local Area Connection" dhcp
    this command works when i run it in dos, but when i run through the batch file an error appears saying
    Code:
    invalid source parameter <Area>.
    this error is so strange, when i run this command in dos it works just fine.

    thanks for reading my question

    regards
    hsn
    Last edited by Nepomuk; Nov 21 '08, 11:12 PM. Reason: Added [CODE] tags
  • jg007
    Contributor
    • Mar 2008
    • 283

    #2
    I don't seem to have any problems using this command in a batch file , from the error that you have given it would seem to be splitting up "Local Area Connection", have you forgotten one of the speech marks?

    Comment

    • hsn
      New Member
      • Sep 2007
      • 237

      #3
      i entered this command in a run after
      Code:
      cmd /k
      could that be a reason.

      hsn

      Comment

      Working...