home *** CD-ROM | disk | FTP | other *** search
/ ftp.wwiv.com / ftp.wwiv.com.zip / ftp.wwiv.com / pub / MISC / DEMO510.ZIP / DIRMNT3.INS / ENVDATE.DOC < prev    next >
Text File  |  1999-01-25  |  1KB  |  31 lines

  1.  
  2. ENVDATE is a simple program which sets an environment variable equal to 
  3. the system date. This allows you to execute batch files which can access 
  4. the date string and use it in filenames (in particular, this is good for 
  5. running periodic events which archive disk files into a unique filename 
  6. each time they are run).  
  7.  
  8. Since it is not possible to modify the "master" DOS environment, this 
  9. program actually modifies a copy of the environment, then executes a 
  10. specified program (usually a batch file) as a subprocess where it can 
  11. access the new environment. The syntax is: 
  12.  
  13.     ENVDATE ProgramName Parameters ...
  14.  
  15. Where "ProgramName" is the name of the program (batch file) you want to 
  16. run. An environment variable called DATE, containing the system date in 
  17. YYMMDD format, is created and available to the program as it is 
  18. executed.  If you execute ENVDATE with no parameters, it will run a 
  19. straight DOS shell, where you can type SET to examine the environment. 
  20. When you run ENVDATE with an actual batch file, the batch file can 
  21. access the date as %DATE%.  
  22.  
  23. When executing ENVDATE from an SLBBS door or event, specify it as 
  24. ENVDATE.EXE to avoid generating an extra COMMAND.COM invocation.  
  25.  
  26. I have included the source code (Turbo Pascal 5.5) so that you can add to 
  27. or modify the variables used.
  28.  
  29. Frank LaRosa 4/4/90
  30.  
  31.