Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
Microsoft Network Client Version 2.2: User's Guide for MS-DOS Clients > Chapter 6 Using LAN Manager Basic

Using Shared Directories

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Glossary

 » Index

With LAN Manager Basic, you can use a shared directory in much the same way you use a directory or disk on your workstation. For example, you can use the files and applications in a shared directory as though they were stored on your workstation's hard disk.

LAN Manager Basic gives you access to shared directories in two ways. You can connect your workstation to a shared directory by assigning a disk devicename to the directory. You can also specify the shared directory as part of a path in some MS-DOS commands. These procedures are explained in the following two sections.

In both cases, the shared directory is identified by a network path. A network path is a server's computername followed by a sharename. A sharename is a name that identifies a shared resource (directory or printer queue). When you type a network path from the command line, two backslashes (\\) precede the computername, and another backslash precedes the sharename.

For instance, \\PRODUCT\REPORTS specifies a network path for the REPORTS shared directory on the \\PRODUCT server.

Connecting to a Shared Directory

You can connect your workstation to a shared directory by assigning a devicename to it. A devicename is a letter followed by a colon (for example, D:). You use the devicename to gain access to the shared directory, just as you use A: to gain access to a floppy disk drive on your workstation. Devicenames A: through Z: are available for assigning to shared directories.

NOTE: If you assign a local drive devicename to a disk drive on the network, your workstation recognizes the network connection rather than the local drive, unless the network connection is paused or disconnected.

To connect to a shared directory

  • Type net use devicename: \\computername\sharename.

For example, to assign the S: devicename to the MIDWEST shared directory on the \\SALES server, type:

net use s: \\sales\midwest

If you make a mistake in typing a command or if you specify an incorrect network path when connecting to a shared directory, the following error messages may appear:

Connection refused or syntax errorNetwork name not found

Some resources require you to supply a password to make a connection. If you don't supply a password when one is required, the following error message appears:

Access denied

To learn how to supply passwords, see "Using Passwords," later in this section.

After you establish a connection, you no longer need to specify the network path to gain access to the shared directory. Instead, specify the devicename you assigned to the directory.

For instance, if you assign S: to the \\SALES\MIDWEST directory, S: represents the network connection in the same way C: represents your workstation's hard disk drive. You can change the current drive to S: and use the shared directory as though it were one of your workstation's disk drives.

Using Passwords

You may have to type a password with net use to gain access to a shared directory. In order to gain access, your computername must be the same as your username, and you must know the password for the directory.

To check your computername

  • Type net name.

If it is not the same as your username, see the net name command for information on changing your computername.

Your administrator can give you the correct password for the directory you want to use.

There are two ways to supply the password:

  • Type the password at the end of the net use command.

    For example, to supply the password region while assigning S: to the MID WEST shared directory on the \\SALES server, type:

    net use s: \\sales\midwest region

  • Type an asterisk (*) instead of the password at the end of the command. LAN Manager Basic then prompts you for a password.

    For example, to substitute an asterisk for the password in the previous example, type:

    net use s: \\sales\midwest *

    The following prompt appears:

    Password:

    Type the password at the prompt. The password doesn't appear on the screen when you type it in in response to the prompt, which keeps the password confi dential.

Using MS-DOS Commands with Shared Directories

You can use the network path of a shared resource as part of a path in some MS-DOS commands. In this case, LAN Manager Basic connects to the server sharing the directory when the command is performed, provided the directory doesn't require a password.

You don't have to assign a devicename to a shared directory when the network path is used as part of an MS-DOS command. When a devicename is assigned, you can specify the devicename rather than the network path in the command.

You can also use a file in a shared directory with any application that runs under MS-DOS. For example, to edit the LIST.DOC file in the \\SALES\MIDWEST directory with Microsoft Word, type:

word \\sales\midwest\list.doc

NOTE: If you want to use a shared directory in an MS-DOS command but the directory requires a password, you must type net use, the network path, and the password. You don't need to specify a devicename.

You cannot use network paths with the following MS-DOS commands:

  • dir

  • copy

However, after you've assigned a devicename to a remote directory (for example, D:), you can use the dir and copy commands as you do with a local subdirectory.

The following MS-DOS commands, which read from and write to a disk, cannot be used with shared directories and their files:

  • chkdsk

  • diskcopy

  • format

  • join

  • recover

  • subst

  • sys

If you try to use a command that reads from or writes to a disk with a shared directory, the following message appears:

Cannot [command] a Network drive

where

[command]

is the name of the command you typed.

Disconnecting From a Shared Directory

You can disconnect your workstation from a shared directory when you finish using it or when you want to assign the devicename to another resource.¤

To disconnect your workstation from a shared directory

  • Type net use devicename: /delete.

    You can abbreviate the /delete option as /d.

For example, to disconnect D: from a shared directory, type:

net use d: /delete

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 1996 Hewlett-Packard Development Company, L.P.