home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.msdos.programmer
- Path: 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
-
- 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
-