Microsoft KB Archive/265835

= Command Line Options for REGENV32.EXE in Windows Millennium Edition =

Article ID: 265835

Article Last Modified on 1/27/2007

-

APPLIES TO


 * Microsoft Windows Millennium Edition

-



This article was previously published under Q265835



SUMMARY
When you move environment variables into and out of the registry, you must use the Windows Millennium Edition (Me) application, Regenv32.exe. You can also use the application for troubleshooting environment variable problems.



MORE INFORMATION
Assuming Windows Me is installed on the C: partition, regenv32.exe -c4 runs every time that Msconfig.exe runs or when Windows is shut down.

The following are definitions of the environment variables discussed in the &quot;Summary&quot; portion of this article:
 * IMPORT: Discards environment settings currently in the registry and imports the environment settings specified in the Config.sys and Autoexec.bat files.
 * EXPORT: Discards environment settings currently specified in the Config.sys and Autoexec.bat files and replaces them with the environment settings in the registry.
 * SYNC: To perform an IMPORT operation followed by an EXPORT operation.
 * RECONCILE: Reads the environment settings in the registry and the autoexec.bat, and Config.sys files. It compares the two and imports any differences discovered into the registry.
 * DELETE: Deletes all environment settings in the registry.

The Syntax for Regenv32.exe is REGENV32 -dn where -d is the drive letter containing the registry, Autoexec.bat and Config.sys files and -n is a number between 1 and 5 representing the action Regenv32.exe performs. The actions are as follows:
 * 1) IMPORT Autoexec.bat and Config.sys files' environment settings into the registry.
 * 2) EXPORT the registry's environment settings to the Autoexec.bat and Config.sys files.
 * 3) SYNCHRONIZE the registry environment with the Autoexec.bat and Config.sys files.
 * 4) RECONCILE the registry environment with the environment variables set in the Autoexec.bat and Config.sys files.
 * 5) DELETE registry environment settings. This should be used with extreme care and only in a test environment.

Additional query words: winmil

Keywords: kbinfo KB265835

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.