bigcheez Posted March 20, 2010 Posted March 20, 2010 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 1wmic nicconfig where index=2 call SetTcpipNetbios 1wmic nicconfig where index=3 call SetTcpipNetbios 1wmic nicconfig where index=4 call SetTcpipNetbios 1wmic nicconfig where index=5 call SetTcpipNetbios 1My machine complains that wmic is not a recognized command.Are there any alternatives?
Sp0iLedBrAt Posted March 21, 2010 Posted March 21, 2010 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.
Yzöwl Posted March 21, 2010 Posted March 21, 2010 Additional note:You can do that in a single command.WMIC NICConfig WHERE "Index <> '0' AND Index <= '5'" CALL SetTCPIPNetBios 1
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now