Map a drive

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: skumar (anonymous_at_discussions.microsoft.com)
Date: 05/28/04


Date: Fri, 28 May 2004 11:46:06 -0700

I want to map a drive to my web server at run time when a user clicks a link in my web application.

Is there a namespace in VB.net to Map drives?

Or
is there a Shell command which directly runs the command from the command prompt instead of running a EXE or a batch file?

Does anybody have a method or code for this in VB.net.

Please let me know.

SKumar



Relevant Pages

  • Re: MapNetworkDrive, can I map without a share?
    ... Before .NET in DOS windowses you could. ... How do I map a network drive when there is no share name? ... From the local command prompt I can use a NET command to map: ... office and will map drives to the current office. ...
    (microsoft.public.scripting.wsh)
  • Re: Cant see the mapped drives
    ... > laptops C drive and optical drives. ... When I look on the "My Network ... OK - then you didn't map the drives. ... Or using a net use command in a command line. ...
    (microsoft.public.windows.server.sbs)
  • Re: MapNetworkDrive, can I map without a share?
    ... Before .NET in DOS windowses you could. ... How do I map a network drive when there is no share name? ... From the local command prompt I can use a NET command to map: ... office and will map drives to the current office. ...
    (microsoft.public.scripting.wsh)
  • Task Scheduler Net Use does not work
    ... I need to map a drive in order for this to work. ... It maps a drive to the first share runs the command to search for files ... If I schedule a task the map drives will not work. ... which means it has rights to map to the remote share, ...
    (microsoft.public.win32.programmer.networks)
  • Re: Map a drive
    ... or from the server to another machine? ... NO, if the second, why map? ... > I want to map a drive to my web server at run time when a user clicks a ... > is there a Shell command which directly runs the command from the command ...
    (microsoft.public.dotnet.framework.aspnet)