"Map network drive" with ONE click tool existing ?

  • Thread starter Thread starter Sergej Balon
  • Start date Start date
S

Sergej Balon

I am searching for a tool which enables me to map e.g. \\192.168.0.200\d\work to the drive
letter K: with ONE click on it.
The click should be made preferable on a icon shortcut on the desktop and let afterwards
appear drive K: in Windows explorer

Is there such a tool ?
Maybe there is a command prompt command for this purpose ?

Sergej
 
Create a batch file and put it on the desktop.

net use k: \\servername_or_ip\sharename /persistent:no
 
I am searching for a tool which enables me to map e.g. \\192.168.0.200\d\work to the drive
letter K: with ONE click on it.
The click should be made preferable on a icon shortcut on the desktop and let afterwards
appear drive K: in Windows explorer

Is there such a tool ?
Maybe there is a command prompt command for this purpose ?

Sergej


1. Create a batch file (eg: netuse_z.bat)

2. The batch file will invoke "net use" with a command line similar to this:

net use z: \\192.168.1.9\c password /USER:username

Where:

z: is the device name you wish the mapped share to use on your system (and
include the colon or it won't work)

\\192.168.1.9 is the target ip address (note: you can also use the name)

\c is the target device name

password is the password of the user on the system serving up the share (if
the share is not globally "open", you'll need a valid account - username and
password - on that machine to map it from your client system)

username is the named account on the serving system.


Write out the file, then create a shortcut to it (in Explorer, right click on
the netuse_z.bat file and select "create shortcut").

Drag that shortcut to your desktop, where you can execute the batch file with
a double-click (or put it in your Quick Launch tray where you can execute the
batch file with a *single* click).

Alternately, you could have your login automagically map the share.

In a command prompt window you can find the syntax of the various forms of the
'net use' command. If the share you're mapping is globally accessible, for
instance, you don't need password or username. If you want the share to
persist through restarts, etc, you can add a switch..

hth

/daytripper
 
I am searching for a tool which enables me to map e.g. \\192.168.0.200\d\work to the drive
letter K: with ONE click on it.
The click should be made preferable on a icon shortcut on the desktop and let afterwards
appear drive K: in Windows explorer

Is there such a tool ?
Maybe there is a command prompt command for this purpose ?

Sergej

Hi

The 'net use' command is what you need, type 'net use /?' (without quotes
in a command prompt for the format. You could create a shortcut on the
desktop with the command 'net.exe use q: \\server\resource' as the command,
obviously with the correct server name and resource.

HTH

Regards

Bill
 
The following command can be used in a batch file:

net use K: \\192.168.0.200\d\work
--
------------------------------------------------------------
GTS Computer Service
serving northern New Jersey
www.gtscomputerservice.com
------------------------------------------------------------


Sergej Balon said:
I am searching for a tool which enables me to map e.g.
\\192.168.0.200\d\work to the drive
 
create a batch encluding line net use k: \\192.168.0.200\d\work and make the
shortcut.

--
For more and other information, go to
http://www25.brinkster.com/ChicagoTech

Don't send e-mail or reply to me except you need consulting services.
Posting on MS newsgroup will benefit all readers and you may get more help.

Robert Lin, MS-MVP, MCSE & CNE
Windows & Network Support, Tips and FAQs on
http://www25.brinkster.com/ChicagoTech
This posting is provided "AS IS" with no warranties.

Sergej Balon said:
I am searching for a tool which enables me to map e.g.
\\192.168.0.200\d\work to the drive
 
Sergej Balon said:
I am searching for a tool which enables me to map e.g.
\\192.168.0.200\d\work to the drive
letter K: with ONE click on it.
The click should be made preferable on a icon shortcut on the desktop and let afterwards
appear drive K: in Windows explorer

Is there such a tool ?
Maybe there is a command prompt command for this purpose ?

Sergej

It's called a batch file :o)

FR
 
Sergej said:
I am searching for a tool which enables me to map e.g. \\192.168.0.200\d\work to the drive
letter K: with ONE click on it.
The click should be made preferable on a icon shortcut on the desktop and let afterwards
appear drive K: in Windows explorer

Is there such a tool ?
Maybe there is a command prompt command for this purpose ?

Sergej

How about zero clicks, instead?

First, on the host PC, share the d:\work folder, with a share name
of, say, DWORK$ and a password of SECRET.

Next, on the client PC, create a .BAT file containing:

net use K: \\192.168.0.200\DWORK$ /persistent:yes SECRET

Then create a link in your Startup folder to that .BAT file. When
you reboot, the mapping will be rebuilt.
 
Back
Top