Microsoft Windows NT 4.0 Guide Manual de usuario Pagina 11

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 35
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 10
Applications Compatibility Scripts for Windows NT Server, Terminal
Server Edition
A third method is to contact the application vendor. They may be able to identify a
method of updating the pathname in question.
Once you have found the location of the path that needs to be changed, what
should you change it to? If the path is stored in HKEY_LOCAL_MACHINE, a special
technique is used.
When a user logs on, a script (UsrLogon.cmd) will be run that maps
a drive letter to their home directory using the “subst” command.
For example, Z:\ will map to \\server\users\fredf for Fred Flounder
and to \\server\users\barneyb for Barney Baitfish.
With this technique, you can specify what appears to be a shared path, such as
Z:\mail\mailbox.dat. Yet, the drive mapping causes each user to get a unique copy
of the file in their home directory.
Some per-user files are automatically generated by the application. A mailbox
would be an example of this type of file. Other per-user files, such as document
templates, must be provided for the user. That is, you must copy the standard files
into the users home directory. If you specified the path as a subdirectory of the
users home directory, you may need to create the subdirectory too.
Per-user tasks like this can be performed in a script that is run during logon. The
script can check the users home directory to determine if the files or directories in
question already exist. If not, it can copy them from a mastercopy. Using a script
allows you update current users with a new application as well as automatically set
up new users you may add later.
Files Missing when normal user logs in:
When a user runs the application, it cant find certain files that are located in or
below %systemroot%. However, if an administrator runs the application, it finds the
files.
Resolution:
Applications that use the GetWindowsDirectory() function to determine
%systemroot% benefit from an automatic remapping. For users, the function
returns the windowssubdirectory of their home directory. Administrators, on the
other hand, get the actual %systemroot% directory.
Normally, this is useful. It automatically converts a shared file into a per-user file.
However, if the shared file is expected to exist, then it wont be found under the
users home directory. This can be corrected by using a logon script to copy the file
if it doesnt already exist.
As an alternative, an application compatibility flag exists that can disable this
automatic remapping. This is appropriate if the files under %systemroot% are only
being used for read access. For more information about these flags, refer to the
Application Compatibility Flags section of this Paper (p.12),
Vista de pagina 10
1 2 ... 6 7 8 9 10 11 12 13 14 15 16 ... 34 35

Comentarios a estos manuales

Sin comentarios