
Applications Compatibility Scripts for Windows NT Server, Terminal
Server Edition
for a single character, but it is still recommended. Otherwise you
need to be careful; a backslash will be treated as an escape
character for the quote which follows.
Example:
"STRIPCHAR\3" changes
C:\WINNT40\Profiles\All Users\Start Menu to
C:\WINNT40
"STRIPPATH" removes the path from the value.
Example:
"STRIPPATH" changes
C:\WINNT40\Profiles\All Users\Start Menu to Start
Menu
Full Example:
ACREGL MyKey.Cmd INSTLOC
"HKLM\Software\Microsoft\Office\8.0\Common\InstallRoot" "" ""
(This command creates the file MyKey.Cmd with the
contents)
SET INSTLOC=C:\Program Files\Microsoft Office
An application compatibility script can then use "CALL
MyKey.Cmd" to retrieve the value of the registry key.
ACREGL returns an errorlevel of 1 for failure or 0 for success.
2. ACSR.exe
What is the purpose of this utility?
This command performs simple text replacement. It reads from
the Input file and writes to the Output file. Each occurrence of the
search string is changed to the replace string. Any of the
parameters can contain environment variables if desired.
Syntax: Acsr Search Replace InputFile OutputFile
Example:
ACSR "#ROOTDRIVE#" "%RootDrive%"
Template\Office97.key Office97.key
Komentáře k této Příručce