🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Batch problem

#3662
From: Jen Kilmer
Date: Fri, 13 Nov 1992 08:32
20 lines
789 bytes
In article <1dualbINN52t@usenet.INS.CWRU.Edu> au240@cleveland.Freenet.Edu (Ari Pitkanen) writes:
>
>
>How do I pass '%%f' to 'DoIt'? 

Well, I'd suggest making DoIt a separate batch file.
Or move to using qbasic.
 
>:Main
>cd scene
>for %%f in (*.*) do call doit %%f    REM call doit.bat using %%f 
>goto End

doit.bat
>cd..
>trace scene\%1                       REM %1 is parameter passed from Main
>copy scene\%1 traced
>del scene\%1

-jen
Technical Details
Message-ID: <1992Nov13.083205.25714@microsoft.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!microsoft!hexnut!jenk
References: <1dualbINN52t@usenet.INS.CWRU.Edu>

Show Full Headers
Complete Article Headers
Newsgroups: comp.os.msdos.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!microsoft!hexnut!jenk
From: jenk@microsoft.com (Jen Kilmer)
Subject: Re: Batch problem
Message-ID: <1992Nov13.083205.25714@microsoft.com>
Date: 13 Nov 92 08:32:05 GMT
Organization: Microsoft Corporation
References: <1dualbINN52t@usenet.INS.CWRU.Edu>
Lines: 20