Article View: comp.os.msdos.programmer
Article #1234Re: Another MsDos batch programming challenge
From: Kevin
Date: Wed, 02 Sep 1992 18:22
Date: Wed, 02 Sep 1992 18:22
28 lines
1412 bytes
1412 bytes
In article <qzhn!6f.resnicks@netcom.com>, resnicks@netcom.com (Steve Resnick) says: >In article <1992Aug29.152816.14977@cs.ubc.ca> yogi@cs.ubc.ca (Yossi Gil) : >writes >>ts@uwasa.fi (Timo Salmi) writes: >> >>Following my tradition of suggesting dirty tricks here is my 3 >>lines version: >> >>cd >> %0 >>echo echo %%set%% >> %0 >>set set=^Z >> >This is the output, when I run FOO.BAT: > cd >> foo.bat > echo echo %set% >> foo.bat > set set= >Cheers! >Steve Hello all ! I won't pretend to be a master of batch files (I have almost no idea what the above two examples are doing) but I do know there is an undocumented DOS command TRUENAME that returns the name of the current directory. Is there a way to set an environment variable to what this returns ? (TRUENAME is suppossed to be given a file name as an argument, and it returns the full name of the file, by the way). Kevin Furrow (f13@psuvm.psu.edu)
Technical Details
Message-ID:
<92246.142230F13@psuvm.psu.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!sun-barr!cs.utexas.edu!asuvax!ukma!psuvax1!psuvm!f13References:
<1992Aug29.063552.26386@uwasa.fi> <1992Aug29.152816.14977@cs.ubc.ca> <qzhn!6f.resnicks@netcom.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!sun-barr!cs.utexas.edu!asuvax!ukma!psuvax1!psuvm!f13 Organization: Penn State University Date: Wed, 2 Sep 1992 14:22:30 EDT From: Kevin <F13@psuvm.psu.edu> Message-ID: <92246.142230F13@psuvm.psu.edu> Newsgroups: comp.os.msdos.programmer Subject: Re: Another MsDos batch programming challenge References: <1992Aug29.063552.26386@uwasa.fi> <1992Aug29.152816.14977@cs.ubc.ca> <qzhn!6f.resnicks@netcom.com> Lines: 28