home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.msdos.programmer
- Path: sparky!uunet!destroyer!sol.ctr.columbia.edu!usenet.ucs.indiana.edu!bronze.ucs.indiana.edu!yawei
- From: yawei@bronze.ucs.indiana.edu (~{QG9p~})
- Subject: Re: Another MsDos batch programming challenge
- Message-ID: <BuJ29z.D1r@usenet.ucs.indiana.edu>
- Sender: news@usenet.ucs.indiana.edu (USENET News System)
- Nntp-Posting-Host: bronze.ucs.indiana.edu
- Organization: Indiana University
- References: <1992Aug29.063552.26386@uwasa.fi> <1992Aug29.152816.14977@cs.ubc.ca> <FRDQB0DG@dri.com>
- Date: Sun, 13 Sep 1992 17:37:11 GMT
- Lines: 14
-
- This is an old trick:
-
- @echo off
- echo set cd=%%2 >directory.bat
- dir >tmp~tmp.bat
- call tmp~tmp
- del directory.bat
- del tmp~tmp.bat
-
-
- This should put the current directory in the environment
- variable CD.
-
-
-