TIP: Click on subject to list as thread! ANSI
echo: 4dos
to: Lars van Dijk
from: Jochen Schaar
date: 1998-10-22 10:05:00
subject: Bat/btm/Extension

18 Oct 98, Lars van Dijk wrote to All:

 LvD> But when I add this in a btm/bat file:
 LvD> For %1 in (*.pas) do pret %1
 LvD> 4DOS adds the extension .PAS !
 LvD> Is there anyway to strip the extension .pas from the command line ?

You could use the {at}name function like this:

for %i in (*.pas) do pret %{at}name[%i]


Jochen
(jochen{at}josh.ruhr.de)

---
* Origin: SysOp-Point of DO-Mail (2:2444/8005.1)
SEEN-BY: 396/1 632/0 371 633/260 267 270 371 635/506 728 639/252
@PATH: 2444/8005 1600 2432/200 2433/1200 225 270/101 396/1 633/260 635/506
@PATH: 635/728 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.