TIP: Click on subject to list as thread! ANSI
echo: 4dos
to: Dave DeGear
from: Leonard Erickson
date: 1998-09-28 10:57:08
subject: JPG -- TXT naming

-=> Quoting Dave DeGear to All <=-

 DD> I have a collection of JPG files and I would like to have a
 DD> separate .TXT file associated with each of them.  For example if I
 DD> have a directory containing 1.jpg, 2.jpg, 3.jpg, how would I also
 DD> create a set of files (preferably empty) in that directory that are
 DD> named 1.txt, 2.txt, 3.txt that are less than 1 or 2 bytes each in
 DD> size? 

With 4dos, this should work (untested!):

for %a in (*.jpg) do `rem>%{at}name[%a].txt`

This will create a zero-byte *.txt file for every *.jpg file in the
current directory. The "backquote" char is required to keep the
">"
from being parsed at the wrong time.



--- Blue Wave/DOS v2.30
* Origin: Shadowshack (1:105/51)
SEEN-BY: 396/1 632/0 371 633/260 267 270 371 635/506 728 639/252
@PATH: 105/51 360 72 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™.