Thread View: comp.os.msdos.misc
2 messages
2 total messages
Started by Steve Madden
Thu, 07 Jan 1993 00:16
remove extension from batch file parameter - results
Author: 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 #
\___/ \__/ \___ \/ \___ ###########################
Re: remove extension from batch file parameter - results
Author: kraai4712
Date: Fri, 08 Jan 1993 14:56
Date: Fri, 08 Jan 1993 14:56
18 lines
1190 bytes
1190 bytes
Steve, In article <1993Jan7.001628.19426@trl.oz.au>, smadden@titan.trl.OZ.AU (Steve Madden) writes: > 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: I sent you a plain-vanilla DOS solution, check your mail again. --jim
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads