REXX Tips & Tricks, Version 2.80


Inf-HTML [About][Toc][Index] 0.9b (c) 1995 Peter Childs


DELDIR



You can change the environment variable <DELDIR in OS/2 sessions to change 
the <UNDELETE behaviour for a special session. 
Examples: 

 
  REM *** OS/2 Batch file to change the DELDIR directory for one session
  SET DELDIR=C:\DELDIR1,512;D:\DELDIR_C,512;


  REM *** OS/2 Batch to disable DELDIR, delete some files and enable
  REM     DELDIR again

  SETLOCAL
  SET DELDIR=
  DEL D:\TEMP\*.*
  ENDLOCAL


  REM *** OS/2 Batch to change the DELDIR directory, delete some files
  REM     and restore the DELDIR directory afterwards
  SETLOCAL
  SET DELDIR=D:\MY_DELDIR,512
  DEL D:\TEMP\*.*
  ENDLOCAL


Note:  This method is also possible in DOS sessions. 
   

Inf-HTML End Run - Successful