home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / os / msdos / programm / 8996 < prev    next >
Encoding:
Internet Message Format  |  1992-09-02  |  1.3 KB

  1. Path: sparky!uunet!sun-barr!cs.utexas.edu!asuvax!ukma!psuvax1!psuvm!f13
  2. Organization: Penn State University
  3. Date: Wed, 2 Sep 1992 14:22:30 EDT
  4. From: Kevin <F13@psuvm.psu.edu>
  5. Message-ID: <92246.142230F13@psuvm.psu.edu>
  6. Newsgroups: comp.os.msdos.programmer
  7. Subject: Re: Another MsDos batch programming challenge
  8. References: <1992Aug29.063552.26386@uwasa.fi>
  9.  <1992Aug29.152816.14977@cs.ubc.ca> <qzhn!6f.resnicks@netcom.com>
  10. Lines: 28
  11.  
  12. In article <qzhn!6f.resnicks@netcom.com>, resnicks@netcom.com (Steve Resnick)
  13. says:
  14. >In article <1992Aug29.152816.14977@cs.ubc.ca> yogi@cs.ubc.ca (Yossi Gil)      :
  15. >writes
  16. >>ts@uwasa.fi (Timo Salmi) writes:
  17. >>
  18. >>Following my tradition of suggesting dirty tricks here is my 3
  19. >>lines version:
  20. >>
  21. >>cd >> %0
  22. >>echo echo %%set%% >> %0
  23. >>set set=^Z
  24. >>
  25. >This is the output, when I run FOO.BAT:
  26. >        cd >> foo.bat
  27. >        echo echo %set% >> foo.bat
  28. >        set set=
  29. >Cheers!
  30. >Steve
  31.  
  32.    Hello all !  I won't pretend to be a master of batch files (I have almost
  33. no idea what the above two examples are doing) but I do know there is an
  34. undocumented DOS command TRUENAME that returns the name of the current
  35. directory.  Is there a way to set an environment variable to what this
  36. returns ?  (TRUENAME is suppossed to be given a file name as an argument,
  37. and it returns the full name of the file, by the way).
  38.  
  39. Kevin Furrow (f13@psuvm.psu.edu)
  40.