🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #3666

Re: Batch problem

#3666
From: ~{QG9p~}
Date: Sat, 14 Nov 1992 02:45
31 lines
1305 bytes
In article <1dualbINN52t@usenet.INS.CWRU.Edu> au240@cleveland.Freenet.Edu (Ari Pitkanen) writes:

>How do I pass '%%f' to 'DoIt'?  This approach don't work.

Others have suggested two-file solutions. Here's a one-file
solution:

[I justed added one line at the beginning, and did some changes
with the for line and the lines with %%f. Not responsible for
any other syntax problems. :-) ]

  Ya-Gui Wei

--------------
if not /%1==/ goto DoIt
:Main
cd scene
for %%f in (*.*) do call %0 %%f   REM copy filename to %%f
goto End

:DoIt
cd..
trace scene\%1                 REM %1 contains each instance of %%f in
                                   recursive calls
copy scene\%1 traced
del scene\%1
cd..
goto Main

:End
cd..
Technical Details
Message-ID: <BxoqCn.Ly7@usenet.ucs.indiana.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!ames!saimiri.primate.wisc.edu!sdd.hp.com!ux1.cso.uiuc.edu!usenet.ucs.indiana.edu!bronze.ucs.indiana.edu!yawei
References: <1dualbINN52t@usenet.INS.CWRU.Edu>

Show Full Headers
Complete Article Headers
Newsgroups: comp.os.msdos.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!ames!saimiri.primate.wisc.edu!sdd.hp.com!ux1.cso.uiuc.edu!usenet.ucs.indiana.edu!bronze.ucs.indiana.edu!yawei
From: yawei@bronze.ucs.indiana.edu (~{QG9p~})
Subject: Re: Batch problem
Message-ID: <BxoqCn.Ly7@usenet.ucs.indiana.edu>
Sender: news@usenet.ucs.indiana.edu (USENET News System)
Nntp-Posting-Host: bronze.ucs.indiana.edu
Organization: Indiana University
References: <1dualbINN52t@usenet.INS.CWRU.Edu>
Date: Sat, 14 Nov 1992 02:45:59 GMT
Lines: 32