|
-
Reef Shark
programming wait, in batch files
One of our dns servers at work is messing up or something and I keep getting the external IP for intranet (since it can be accessed outside, but you cant double-NAT to it) and a simple fix for the mean time till I can figure out what the main problem is, is to bring up a command prompt and run
Net stop "dns client"
Net start "dns client"
and that re-queries the dns (i think) and temporarly fixes the issue.
It normally takes a few seconds for the first command to finish executing, so I want to have my batch file run the first, wait about 5seconds, then run the second. Ive researched a bit on the net and ive found alot of people saying to create a 2nd batch file and then call it within the first...id rather not do that, and id rather not use the pause command. Id like it to be automated, merely beacuse I want to see how to do it 
any ideas?
im running winxp.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|