Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

A little help with a batch file for connection to a server.

Status
Not open for further replies.

pdldavis

Technical User
Oct 29, 2001
522
US
Hi, I have several batch files I use to connect to remote servers. They work, but don't always connect. I will get a 'site not found error'. After asking around, it seems that timeout could be the issue because traffic can get pretty heavy at times.

I would like to increase the timeout setting and see if this solves the problem. I thought the Ping command might do this but I am not sure.

This is what I have tried:

echo off

net use S: /delete
ping 1xx.xx.xx.3 -w 2000, -n 1 'just added this
net use S: \\1xx.xx.xx.3\share 8215pass /user:startup
echo on

Any help with this would be appreciated....been having a tough time with this.

Thanks, Dan

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top