Login Script

G

Guest

I have created a small script .bat file. That runs on startup.

It basically consists of:

ipconfig /renew
ipconfig /all
*******
use x: \\COMPUTERNAME\SHARENAME /persistent:no

I would like to replace the *'s with a DELAY of ten seconds. Does anyone
know how to do this?

TIA

DAN
 
S

Shenan Stanley

DanielWalters6 said:
I have created a small script .bat file. That runs on startup.

It basically consists of:

ipconfig /renew
ipconfig /all
*******
use x: \\COMPUTERNAME\SHARENAME /persistent:no

I would like to replace the *'s with a DELAY of ten seconds. Does
anyone know how to do this?

Multi-posted?
Please - in the future - cross-post if you feel the necessity.

As you put in another post you didn't want to use "sleep"..

http://www.experts-exchange.com/Operating_Systems/MSDOS/Q_20978849.html
 
S

Shenan Stanley

DanielWalters6 said:
I have created a small script .bat file. That runs on startup.

It basically consists of:

ipconfig /renew
ipconfig /all
*******
use x: \\COMPUTERNAME\SHARENAME /persistent:no

I would like to replace the *'s with a DELAY of ten seconds. Does
anyone know how to do this?

Shenan said:
Multi-posted?
Please - in the future - cross-post if you feel the necessity.

As you put in another post you didn't want to use "sleep"..

http://www.experts-exchange.com/Operating_Systems/MSDOS/Q_20978849.html

And open the link in Internet Explorer..
Firefox doesn't seem to just allow you to scroll down to the answer.
Weird. Never noticed it before.
 
B

Bob I

Actually seconds equals ping count minus one so
for ten seconds you want

ping -n 11 127.0.0.1 >NUL
 
G

Guest

Bob:

Darn it!!. Thanks for catching it.

Reminds me of the time I volunteered to drive my boss to a hotel, got
confused with the driveways, and dropped him off next store. Boss said "darn
it Frank, what's wrong with you, you're always ONE OFF" :)

Frank
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top