bigcheez Posted March 20, 2010 Share 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? Link to comment Share on other sites More sharing options...
Sp0iLedBrAt Posted March 21, 2010 Share 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. Link to comment Share on other sites More sharing options...
Yzöwl Posted March 21, 2010 Share 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 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now