Use the preplace.exe command to substitute OSIM parameters in text mode files. This command also applies to WinPE images.
Note: There are different versions for win32 and amd64.
This command has the following format:
preplace -i parameter_file1 [ ... -i parameter_filen] file1 [... filem]
where:
Specifies a list of files containing the OSIM parameters. The list elements are separated by spaces.
Specifies a list of files in which the parameters should be substituted. The files in the list are separated by spaces. In all files listed, each parameter value of $parametername$ is replaced with the value from the file parameter_file.
Example: Substitute OSIM Parameters
The following command sequence gets the Windows XP installation script winxp.cmd and auto answer file winxp.inf, as well as the target specific parameters from the boot server. The preplace command substitutes the OSIM parameters in both the installation script and the auto answer file, before the Windows XP installation script is executed.
sdmpcimg -m TFTP -t #MPCPATH#/camenu/winxp.inf c:\winxp.inf sdmpcimg -m TFTP -t #MPCPATH#/camenu/winxp.cmd c:\winxp.cmd sdmpcimg -m TFTP -p c:\parameter.dat preplace -i c:\parameter.dat c:\winxp.inf c:\winxp.cmd C:\winxp.cmd
Copyright © 2013 CA.
All rights reserved.
|
|