Computing.Net > Forums > Programming > Batch File that opens network drive

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Batch File that opens network drive

Reply to Message Icon

Name: kwaprs
Date: November 17, 2004 at 07:47:04 Pacific
OS: XP
CPU/Ram: centrino 512MB RAM
Comment:

I'm wondering if there is a way to create a batch file that opens a network drive.
Here's my situation, I have a user that is connecting to our network via VPN, we do not have network drives mapped on his pc because when his VPN is not connected it can't find the mapped drives and slows things down. The current solution is that every time he wants to get to a network drive he goes to Start > Run and types in the network path (\\servername\folder). Is there a way I can autimate this so he can just click on an icon and his network drive will open?
thanks!



Sponsored Link
Ads by Google

Response Number 1
Name: bamakhrama
Date: November 17, 2004 at 10:14:15 Pacific
Reply:

I assume that your user is connected to the VPN & can access that network resource. Then all what you need to do is to make a shortcut on the desktop or anywhere so that he/she "double-click" on it. I think it is obvious how to make a shortcut, right-click->New->Shortcut-> then type the address \\server\\folder.
I hope that this will do the job.


0

Response Number 2
Name: aluyen
Date: December 1, 2004 at 10:17:19 Pacific
Reply:

You can also use this command:

net use drive letter:\\servername\folder /persistent: YES

For example:

net use G: \\server\fol /persistent: YES

Just drop this into a notepad, save it as Network Drive or VPN.bat to and you're ready to roll with a one click network connection.

Hope this helps


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


Cascade Combo PHP/MYSQL return code for find comm...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Batch File that opens network drive

Batch file that xcopy and compare www.computing.net/answers/programming/batch-file-that-xcopy-and-compare/16192.html

batch file open program enter pwd www.computing.net/answers/programming/batch-file-open-program-enter-pwd/16893.html

batch file to search all drives www.computing.net/answers/programming/batch-file-to-search-all-drives/17464.html