Jump to content

Batch file problems


bigcheez

Recommended Posts

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?

Link to comment
Share on other sites


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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...