MSFN Forum: Batch file problems - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Batch file problems wmic? Rate Topic: -----

#1 User is offline   bigcheez 

  • Group: Members
  • Posts: 9
  • Joined: 05-March 10
  • OS:2000
  • Country: Country Flag

Posted 20 March 2010 - 05:19 PM

I am attempting to make a switchless addon for nlite (2k slip).
The program comes with batch file for installing.
When I run the batch on my XP machine I get errors on the following lines.
wmic nicconfig where index=1 call SetTcpipNetbios 1
wmic nicconfig where index=2 call SetTcpipNetbios 1
wmic nicconfig where index=3 call SetTcpipNetbios 1
wmic nicconfig where index=4 call SetTcpipNetbios 1
wmic nicconfig where index=5 call SetTcpipNetbios 1
My machine complains that wmic is not a recognized command.
Are there any alternatives?


#2 User is offline   Sp0iLedBrAt 

  • MSFN Addict
  • Group: Supreme Sponsor
  • Posts: 1,543
  • Joined: 19-March 09
  • OS:XP Pro x86
  • Country: Country Flag

Posted 20 March 2010 - 07:37 PM

Well, I just typed wmic into Command Prompt and it said: Please wait while wmic is installed. So it has to be installed first, and then you can run it. So (from RunOnce), you can first give it a wmic command, then some timeout of 10-20 seconds, and then let the commands run. It's worth a try.

#3 User is offline   Yzöwl 

  • Wise Owl
  • Group: Super Moderator
  • Posts: 4,117
  • Joined: 13-October 04
  • OS:Windows 7 x64

Posted 21 March 2010 - 10:08 AM

Additional note:
You can do that in a single command.
WMIC NICConfig WHERE "Index <> '0' AND Index <= '5'" CALL SetTCPIPNetBios 1


Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy