|
David, Not sure if this is exactly what your looking for, but if your running under Win2K it looks like you can use the %CD% variable to retrieve the directory. From the SET help screen: If Command Extensions are enabled, then there are several dynamic environment variables that can be expanded but which don't show up in the list of variables displayed by SET. These variable values are computed dynamically each time the value of the variable is expanded. If the user explicitly defines a variable with one of these names, then that definition will override the dynamic one described below: %CD% - expands to the current directory string. Terry > -----Original Message----- > From: pctech-bounces@xxxxxxxxxxxx > [mailto:pctech-bounces@xxxxxxxxxxxx] On Behalf Of David Gibbs > Sent: Thursday, November 04, 2004 12:11 PM > To: pctech@xxxxxxxxxxxx > Subject: [PCTECH] Determine current directory in DOS? > > > Anyone know of a way to set an environment variable to the current > directory name in a DOS batch file? > > Thanks! > > david > -- > This is the PC Technical Discussion for iSeries Users > (PcTech) mailing list > To post a message email: PcTech@xxxxxxxxxxxx > To subscribe, unsubscribe, or change list options, > visit: http://lists.midrange.com/mailman/listinfo/pctech > or email: PcTech-request@xxxxxxxxxxxx > Before posting, please take a moment to review the archives > at http://archive.midrange.com/pctech. >
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.