The savestat.cmd utility allows you to store and retrieve up to 21 values to persistent storage.
You can use savestat.cmd to return to your place in an installation, even when a reboot is required. This utility is designed to return values that set the errorlevel environment variable so that you can branch in a script or batch file based on the result of the utility's execution.
The utility runs in 32- and 64–bit versions of Windows Preinstallation Environment 2.1/3.0, Windows Server 2003, and Windows Server 2008.
SAVESTAT [/q] /reset
SAVESTAT [/q] /set1=value [.../set2=value ... /set21=value]
SAVESTAT [/q] /getn
SAVESTAT [/q] /validate
SAVESTAT [/q] /signature
Parameter | Description | Usage |
---|---|---|
|
Saves an integer value, value,
to the th location in persistent-storage memory,
where n is an integer from 1–21 Return codes:
|
Where:
|
|
Retrieves the value currently set in the nth
location in persistent-storage memory, where n is an integer
from 1-21. Return codes:
|
Where n is an integer from 1–21 |
|
Resets all persistent-storage memory to zero values. Return codes:
|
|
|
Verifies that the persistent storage contains the savestat signature. Return
codes:
|
|
|
Verifies that the system is supported by savestat. Return
codes:
|
|
|
Invokes the quiet mode. This parameter is optional and can be used with any other savestat parameter. |
|
Example | Description |
---|---|
|
Stores the value 100 in the second persistent-storage memory location |
|
Retrieves the value of the second persistent-storage memory location and branches in the batch file according to the value returned |