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

Batch File that opens network drive

Reply to Message Icon

Original Message
Name: kwaprs
Date: November 17, 2004 at 07:47:04 Pacific
Subject: Batch File that opens network drive
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!


Report Offensive Message For Removal

Response Number 1
Name: bamakhrama
Date: November 17, 2004 at 10:14:15 Pacific
Subject: Batch File that opens network drive
Reply: (edit)

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.


Report Offensive Follow Up For Removal

Response Number 2
Name: aluyen
Date: December 1, 2004 at 10:17:19 Pacific
Subject: Batch File that opens network drive
Reply: (edit)

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


Report Offensive Follow Up For Removal







Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: Batch File that opens network drive

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software