OS Fundamentals
SETVER Some MS-DOS-based
applications require a specific version of MS-DOS to be running.
This file responds to applications that query for the version number
and sets the version number required. This command is usually put
into config.sys, but is now incorporated into the windows IO.SYS
file.
Example of line in config.sys. device=c:\windows\setver.exe
SCANREG Runs the Registry Checker
program, which scans your registry. If Registry Checker notices a
problem, it automatically replaces the registry with the backup
copy.
Windows comes with a DOS version Scanreg.exe located in
\windows\command and an windows version Scanregw.exe located in
\windows
Command line options for Registry Checker
To
restore the backup manually
Restart in DOS mode
Type scanreg /restore
Select latest backup
ScanReg
and ScanRegW
/backup Backs up the registry with no prompts to the
user.
/comment= Specifies that a comment is attached to the
backup, which is displayed with /restore
ScanRegW
only
/autoscan Scans the registry files every time it is run,
but only backs up once per day.
/scanonly Scans the registry files and returns an error
level. Does not back up.
ScanReg
only
/restore Displays a list of backup files available,
sorted by date and time of the backup
/fix Repairs the registry files
Error Codes
2 The registry is bad
0 No problems found
-2 Not enough memory; free some memory
-3 File not found; one or both of the registry files are
missing
-4 Unable to create User.dat or System.dat
-5 Reading the registry failed
-6 Writing to the registry failed
-7 Sharing violation (protect mode only); another
application has the registry open
|