Category : OS/2 Files
Archive   : FLIST58.ZIP
Filename : FSAVENV.CMD

Output of file : FSAVENV.CMD contained in archive : FLIST58.ZIP
@echo off
rem This is an example of a CMD file that can be run within FLIST to save
rem the environment to a CMD file.
rem We save the environment by redirecting the output of the GENV program
rem to a file. If GENV detects that its output has been redirected it
rem writes 'SET' commands which can later be used to restore the environment.
if .%1 == . goto Usage
if .%2 == . goto Doit
echo Usage is:
echo %0 filename
echo Where filename is the name of the file to write the SET commands to.
goto End
if exist %1 goto Prompt
goto Newfile
MLINE "File %1 already exists - Action?" Overwrite Append Exit
if errorlevel 2 goto End
if errorlevel 1 goto Append
GENV > %1
goto End
GENV >> %1

  3 Responses to “Category : OS/2 Files
Archive   : FLIST58.ZIP
Filename : FSAVENV.CMD

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: