home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / os / msdos / programm / 9328 < prev    next >
Encoding:
Text File  |  1992-09-13  |  769 b   |  27 lines

  1. Newsgroups: comp.os.msdos.programmer
  2. Path: sparky!uunet!destroyer!sol.ctr.columbia.edu!usenet.ucs.indiana.edu!bronze.ucs.indiana.edu!yawei
  3. From: yawei@bronze.ucs.indiana.edu (~{QG9p~})
  4. Subject: Re: Another MsDos batch programming challenge
  5. Message-ID: <BuJ29z.D1r@usenet.ucs.indiana.edu>
  6. Sender: news@usenet.ucs.indiana.edu (USENET News System)
  7. Nntp-Posting-Host: bronze.ucs.indiana.edu
  8. Organization: Indiana University
  9. References: <1992Aug29.063552.26386@uwasa.fi> <1992Aug29.152816.14977@cs.ubc.ca> <FRDQB0DG@dri.com>
  10. Date: Sun, 13 Sep 1992 17:37:11 GMT
  11. Lines: 14
  12.  
  13. This is an old trick:
  14.  
  15. @echo off
  16. echo set cd=%%2 >directory.bat
  17. dir >tmp~tmp.bat
  18. call tmp~tmp
  19. del directory.bat
  20. del tmp~tmp.bat
  21.  
  22.  
  23. This should put the current directory in the environment
  24. variable CD.
  25.  
  26.  
  27.