Как "размапить" диске? Команда, обратная MAP.

Обсуждение технических вопросов по продуктам Novell

Как "размапить" диске? Команда, обратная MAP.

Сообщение Аркадий Глазырин » 26 фев 2004, 17:10

В логин-скрипте контейнера есть:
MAP Z:=UFSB_SYS

одному нужен Z: под другие нужды.

Хочу ему в свой Login script

вписать что-то навроде

DISMAP Z:=ACMB_SYS

Напомните пожалуйста. Забыл... :cry:
Аватара пользователя
Аркадий Глазырин
 
Сообщения: 2762
Зарегистрирован: 16 авг 2002, 09:09
Откуда: Екатеринбург

Сообщение Сергей Дубров » 26 фев 2004, 17:26

map /? тебе в помощь :D . ПисАть нужно MAP DEL Z:
Аватара пользователя
Сергей Дубров
 
Сообщения: 2096
Зарегистрирован: 05 июн 2002, 06:07
Откуда: Новосибирск, ин-т ядерной физики СО РАН

Сообщение Аркадий Глазырин » 26 фев 2004, 17:34

Сергей Дубров писал(а):map /? тебе в помощь :D . ПисАть нужно MAP DEL Z:


Спасибо!

Сейчас проверю.
Самые простые варианты приходят на ум в последнюю очередь.
Аватара пользователя
Аркадий Глазырин
 
Сообщения: 2762
Зарегистрирован: 16 авг 2002, 09:09
Откуда: Екатеринбург

Сообщение Владимир Горяев » 26 фев 2004, 17:40

Ну вы, блин, даете...
F1 в нвадмине нажать ну никак...
Или MAP.EXE /?
Use MAP to map drives and search drives to network directories.

Command Format

MAP [options] [drive=path]

Replace drive with any valid network drive letter, local drive letter, or search drive number.

Replace path with either a drive letter, a full directory path, or a Directory Map object.
More than one command can be on the map line if the commands are separated by a semicolon ( ; ), as shown in the following example:
map *1:=sys:public;*2:=sys:public\dos
When mapping a drive to a directory on an NDS* server, begin the path with either the Volume object name or server\volume.

When mapping to a directory on a bindery-based server or to an NDS server that isn’t the current server, begin the path with the server’s name.

Replace option with one of the following:

DISPLAY ON|OFF: Determines whether drive mappings are displayed on the screen when the user logs in. The default setting is ON. This option is valid only in login scripts.
ERRORS ON|OFF: Determines whether MAP error messages are displayed when the user logs in. MAP ERROR OFF must be placed before MAP commands in the login script. The default setting is ON. This option is valid only in login scripts.
INS: Inserts a drive mapping between existing search mappings.

DEL: Deletes a drive mapping, making that drive letter available for other mapping assignments.
ROOT: Maps a fake root. Windows** NT** and OS/2** are always mapped to the root. Some applications require their executable files to be located in a root directory.

Since you might not want users to have rights at the root directory, you can map a fake root to a subdirectory instead.
The Windows NT native environment forces a map root on all drives. To prevent a forced map root in a Windows NT environment, set the MAP ROOT OFF = 1 environment variable. All drives are then mapped as specified, and only explicit map root drives are rooted.

C (CHANGE): Changes a search drive mapping to a regular mapping, or a regular mapping to a search drive mapping.
P (Physical): Maps a drive to the physical volume of a server, rather than to the Volume object’s name.

It is possible to have a Volume object name that conflicts with a physical volume name. (For example, object ACCT is an Accounting volume, but there is also an ACCT which is a physical volume.)
Therefore, if you prefer to map a drive to the physical volume name, use MAP P.

N (Next): When used without specifying a drive number or letter, maps the next available drive.

Using MAP

If you use MAP to automate drive map assignments during execution of the login script, users don’t have to manually map drives every time they log in.
If you do not want the result of each mapping to be displayed as it is executed, add the MAP DISPLAY OFF command at the beginning of the login script. When all drive map assignments have been completed, add the line MAP DISPLAY ON and MAP to your login script. This sequence provides a cleaner display for users as they log in.

Instead of specifying drive letters such as F: or G:, you could use an asterisk followed by a number n to represent the nth network drive. For example, if the first network drive is F: then using MAP *3:= would assign H: {1 2 3 = F G H}. Or, if the first network drive is D:, then using MAP *4:= would assign G: {1 2 3 4 = D E F G}.
This allows drive letters to reorder themselves automatically when local drives are removed or added or when the first network drive is changed.

This also allows users to log in from workstations with a different number of local drives than their regular workstation.
You can map a local drive (usually A: through C:) to a network directory, but you cannot access the local drive until you remove the network drive mapping. In a Windows environment, however, do not map over the local drive containing the Windows directory.
Do not map a redirected drive, such as a CD-ROM drive, to a network drive.

Бардак автоматизировать невозможно!!!
_________________
Аватара пользователя
Владимир Горяев
 
Сообщения: 3473
Зарегистрирован: 05 июн 2002, 13:37
Откуда: Смоленск


Вернуться в Novell

Кто сейчас на конференции

Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 42

cron