Article View: comp.os.msdos.misc
Article #3609remove extension from batch file parameter - results
From: Steve Madden
Date: Thu, 07 Jan 1993 00:16
Date: Thu, 07 Jan 1993 00:16
33 lines
1739 bytes
1739 bytes
Hi there,
this is just a summary of the replies I got regarding a query I
posted just before Xmas, as laid out below:
I'm wondering if any of the real DOS experts out there knows
how to solve the following problem. I have a filename complete with
extension passed into a batch file as a replaceable parameter. I need to
remove the extension from this, and put it in an environment variable.
Does anyone know if this is possible under vanilla DOS ?? If so, how do
you do it ??
Well, the answer seems to be that it may not be possible with vanilla
DOS. I received a number of suggestions, all of which used shareware/PD
solutions. These were:
awk/sed ports to DOS
Xset from Simtel-20
some stuff in the envutl directory of Garbo
I wanted to do this in vanilla DOS, as the solution needed to be
implemented on a number of PCs but it seems this is not possible. In the
end, I took a completely different approach, and modified what was being
passed into the batch file from the calling program.
Thanks for all the suggestions tho'.
/~~~\ !
\___ !--- ___ . . ___ ###########################
\ ! /___> \ / /___> # smadden@titan.trl.OZ.AU #
\___/ \__/ \___ \/ \___ ###########################
Technical Details
Message-ID:
<1993Jan7.001628.19426@trl.oz.au>Path:
arc1-ca.pugleaf.net!sparky!uunet!munnari.oz.au!titan!titan!smaddenShow Full Headers
Complete Article Headers
Newsgroups: comp.os.msdos.misc Path: arc1-ca.pugleaf.net!sparky!uunet!munnari.oz.au!titan!titan!smadden From: smadden@titan.trl.OZ.AU (Steve Madden) Subject: remove extension from batch file parameter - results Message-ID: <1993Jan7.001628.19426@trl.oz.au> Sender: root@trl.oz.au (System PRIVILEGED Account) Organization: Telecom Research Labs, Melbourne, Australia Date: Thu, 7 Jan 1993 00:16:28 GMT Lines: 33