| United States-English |
|
|
|
![]() |
Microsoft Network Client Version 2.2: User's Guide for MS-DOS Clients > Chapter 6 Using LAN Manager BasicUsing Shared Directories |
|
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. 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.
To connect to a shared directory
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:
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:
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. 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 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:
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
You cannot use network paths with the following MS-DOS commands:
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:
If you try to use a command that reads from or writes to a disk with a shared directory, the following message appears:
where
is the name of the command you typed. 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
For example, to disconnect D: from a shared directory, type: net use d: /delete |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||