Need Batch File Help

Rakewell

Platinum Member
Feb 2, 2005
2,418
1
76
Greetings all,

I hope I'm posting in the right place.

I created a batch file in the startup folder, in order to automatically connect to my mapped network drives at XP startup (for whatever reason, XP isn't doing it on it's own).

The commands I am using work in the batch file when executed on their own; however, it is executing before my laptop connects to the network (wireless).

Can anyone tell me how to write a 5-7 second delay in the batch file correctly? I've been googling this all morning, but cannot seem to get it to work.

here is my batch command for my networked mapped drive to reconnect at logon:

net use Z: \\[system]\[drive name] /persistent:yes /user:[System]\[user name] [password]

Thanks in advance.

Rakewell
 

Rakewell

Platinum Member
Feb 2, 2005
2,418
1
76
Originally posted by: Snapster
Bit of a hack but:

ping 1.0.0.0 -n 1 -w 5000

Thanks for the response!

Sorry for the novice question:

Is that verbatim, or the IP of the system the mapped drive is connecting to?

Thanks again,

Rakewell
 

Snapster

Diamond Member
Oct 14, 2001
3,916
0
0
It's verbatim, the idea is to ping a non existant address once, and wait for five seconds (5000 milliseconds) for a reply (which it won't get anyway).
 

Rakewell

Platinum Member
Feb 2, 2005
2,418
1
76
Originally posted by: Snapster
It's verbatim, the idea is to ping a non existant address once, and wait for five seconds (5000 milliseconds) for a reply (which it won't get anyway).

That's bloody brilliant, and it works perfectly.

Thanks for your time, Snapster.