ENVSAVE.COM - from Slashback Software - http://www.SlashbackSoftware.com ENVSAVE.COM is a small utility that just saves the DOS environment to a file, or restores the environment from a file. This version is a bit crude: it simply saves or restores the entire environment. It also doesn't have useful error messages or a help screen. Syntax: ENVSAVE / [] A switch is required (not case sensitive). Choices are: /S Save to file /G Get (same as /S, Save to file) /R Restore from file /P Put (same as /R, Restore from file) The is optional. Without a on the command line, ENVSAVE tries to use a file in the current directory named ENVSAVE.DAT. Example: Simply running ENVSAVE /S will create or replace the file ENVSAVE.DAT in the current directory. ENVSAVE /R will replace the existing DOS environment with that stored in ENVSAVE.DAT. ENVSAVE /S filename.any will create or replace the file FILENAME.ANY in the current directory. ENVSAVE /R filename.any will replace the existing DOS environment with that stored in FILENAME.ANY. Any valid filename can be used, and may include a path. If the file cannot be opened or created (due to invalid filename, disk full, the file exists as read-only, etc.), a cryptic error message is displayed. Note that files are OVERWRITTEN WITHOUT WARNING, so be careful! *** FREEWARE FREEWARE FREEWARE ENVSAVE.COM is freeware. As such, it comes with NO GUARANTEES of any kind. USE AT YOUR OWN RISK!! *** NO WARRANTY NO WARRANTY NO WARRANTY On the other hand, it is believed to behave substantially as described. It has been used during the development and testing of ENVMATH.COM, and has been successfully used in conjunction with ENVMATH.COM in real world situations. While ENVSAVE.COM employs virtally NO ERROR CHECKING, it has been found so stable and useful that it was decided to include it in the ENVMATH.COM distribution. History: Early in the development of ENVMATH.COM a means was needed to "pick up where we left off" as regards the contents of the environment. Very simple (and very crude) utilities named ENVGET.COM and ENVPUT.COM were created to facilitate this. ENVSAVE.COM was made by simply (and crudely) combining these two, using /g or /p to indicate which function to perform. Since Save and Restore are more descriptive of the action (for those not familiar with the C language), the synonymous switches /s and /r were added. Possible future versions will allow much greater control over operations. 1. The data file (i.e., ENVSAVE.DAT) will be formatted without reliance on Null bytes (ASCII zero- that's how the environment does it); this will make it practical to edit the file, if desired. 2. Another planned improvement is an option to add to the existing environment, rather than replacing it wholesale. 3. More options to save and restore only specified variables. The combined advantages of these three improvements will allow it to act as an Extended Set command. The name will probably be changed. Contact us: If you find ENVSAVE.COM useful, an email to envsave@slashback.8m.com would be appreciated. Better yet, a nice postcard would be appreciated even more! Send it to: John Homerstad 460 E. Bryan Avenue Salt Lake City, UT 84115 Any ideas for improvements are also quite welcome.