TIP: Click on subject to list as thread! ANSI
echo: 4dos
to: Lars Van Dijk
from: John Thompson
date: 1998-10-22 20:28:00
subject: Bat/btm/Extension

In a message to All, Lars van Dijk wrote re: Bat/btm/Extension

LD> Hallo All,
LD> 
LD> I was wondering, I need to run a program for a specific type of files like:
LD> 
LD> Pret.exe source (without extension .pas)
LD> 
LD> But when I add this in a btm/bat file:
LD> For %1 in (*.pas) do pret %1
LD> 
LD> 4DOS adds the extension .PAS !
LD> Is there anyway to strip the extension .pas from the command line ?

Sure.  Try "for %a in (*.pas) do pret %{at}name[%a]" instead.  But 
why not just use an "executable extension?"  Put a 
".pas=pret.exe" line in your environment and then your .pas files
will automatically be passed as a parameter to pret.exe


 * KWQ/2 1.2i * Internet: John.Thompson{at}ibm.net


--- PCBoard (R) v15.3/M 10
* Origin: Spare Parts BBS - Appleton WI (920-731-7697) (1:139/0)
SEEN-BY: 396/1 632/0 371 633/260 267 270 371 635/506 728 639/252
@PATH: 139/625 3615/50 396/1 633/260 635/506 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™.