Results 1 to 4 of 4

Thread: Map a Drive from the Command Line

  1. #1
    Join Date
    Feb 2009
    Posts
    43

    Map a Drive from the Command Line

    Hello , I would like to mapa network Drive using the command prompt , So Can you tell me What is the command to map a network drive from the command prompt? , Please Help me Thanks in advance

  2. #2
    Join Date
    Apr 2008
    Posts
    3,339

    Re: Map a Drive from the Command Line

    if I remember correctly Net use permits to connect to a network drive:

    For example: net use \\ServerName\ShareName

    net use serves to connect a network drive. If you explore after using these commant you will see a new drive is existing.

  3. #3
    Join Date
    May 2008
    Posts
    3,516

    Re: Map a Drive from the Command Line

    Here is the code in Visual basic Scripts , This script will connect a network drive to drive b, you have to run this script your machine
    Dim a
    Set a= CreateObject ( "Wscript.Network")
    a.MapNetworkDrive "b", "\\computer1\shared folder"
    WScript.Quit
    'End of script

  4. #4
    Join Date
    Apr 2008
    Posts
    3,424

    Re: Map a Drive from the Command Line

    Net use is a command line utility to manage your network connections.

    Here are some indications for its use:
    * Will select all the established network connections (net use * ...)

    \\Computer\Share [volume] to select the shared handle (net use \\server\web ...)

    /d as "delete" will delete connections (net use * /d)

    /y as "yes" to validate the changes permanently

    /? Will display detailed orders for net use

Similar Threads

  1. How to access c drive through command line?
    By Laiman in forum Windows Software
    Replies: 4
    Last Post: 16-03-2011, 08:03 PM
  2. xcopy command line together with wmplayer command line
    By Aislinn in forum Operating Systems
    Replies: 5
    Last Post: 31-03-2010, 12:13 PM
  3. Replies: 3
    Last Post: 03-09-2009, 05:41 PM
  4. Command Line Ren (Rename) command broken?
    By SixSigmaGuy in forum Vista Help
    Replies: 2
    Last Post: 18-05-2008, 03:30 PM
  5. Replies: 1
    Last Post: 18-05-2007, 01:24 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,717,279,866.78808 seconds with 16 queries