home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / msdos / misc / 6883 < prev    next >
Encoding:
Text File  |  1993-01-06  |  1.7 KB  |  44 lines

  1. Newsgroups: comp.os.msdos.misc
  2. Path: sparky!uunet!munnari.oz.au!titan!titan!smadden
  3. From: smadden@titan.trl.OZ.AU (Steve Madden)
  4. Subject: remove extension from batch file parameter - results
  5. Message-ID: <1993Jan7.001628.19426@trl.oz.au>
  6. Sender: root@trl.oz.au (System PRIVILEGED Account)
  7. Organization: Telecom Research Labs, Melbourne, Australia
  8. Date: Thu, 7 Jan 1993 00:16:28 GMT
  9. Lines: 33
  10.  
  11. Hi there,
  12.      this is just a summary of the replies I got regarding a query I
  13. posted just before Xmas, as laid out below:
  14.  
  15.  
  16.       I'm wondering if any of the real DOS experts out there knows
  17. how to solve the following problem. I have a filename complete with
  18. extension passed into a batch file as a replaceable parameter. I need to
  19. remove the extension from this, and put it in an environment variable.
  20. Does anyone know if this is possible under vanilla DOS ?? If so, how do
  21. you do it ?? 
  22.  
  23.  
  24. Well, the answer seems to be that it may not be possible with vanilla
  25. DOS. I received a number of suggestions, all of which used shareware/PD
  26. solutions. These were:
  27.  
  28.         awk/sed ports to DOS
  29.         Xset from Simtel-20
  30.         some stuff in the envutl directory of Garbo
  31.  
  32. I wanted to do this in vanilla DOS, as the solution needed to be
  33. implemented on a number of PCs but it seems this is not possible. In the
  34. end, I took a completely different approach, and modified what was being
  35. passed into the batch file from the calling program.
  36.  
  37. Thanks for all the suggestions tho'.
  38.  
  39.  
  40.       /~~~\   !                           
  41.       \___    !---   ___ .    .  ___       ###########################
  42.           \   !     /___> \  /  /___>      # smadden@titan.trl.OZ.AU #
  43.       \___/   \__/  \___   \/   \___       ###########################
  44.