Previous Topic: Configure TFTP Blocksize to Improve File Transmission TimeNext Topic: canet Command-Get Access to OSIM Shares on the Boot Server


preplace Command--Substitute OSIM Parameters in Text Mode Files

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:

-i parameter_file1 [ ... -i parameter_filen]

Specifies a list of files containing the OSIM parameters. The list elements are separated by spaces.

file1 [... filen]

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