Article View: comp.os.msdos.programmer
Article #1485Re: Another MsDos batch programming challenge
From: ~{QG9p~}
Date: Sun, 13 Sep 1992 17:37
Date: Sun, 13 Sep 1992 17:37
12 lines
791 bytes
791 bytes
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.
Technical Details
Message-ID:
<BuJ29z.D1r@usenet.ucs.indiana.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!destroyer!sol.ctr.columbia.edu!usenet.ucs.indiana.edu!bronze.ucs.indiana.edu!yaweiReferences:
<1992Aug29.063552.26386@uwasa.fi> <1992Aug29.152816.14977@cs.ubc.ca> <FRDQB0DG@dri.com>Show Full Headers
Complete Article Headers
Newsgroups: comp.os.msdos.programmer
Path: arc1-ca.pugleaf.net!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