home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / os / msdos / programm / 10602 < prev    next >
Encoding:
Text File  |  1992-11-14  |  759 b   |  31 lines

  1. Newsgroups: comp.os.msdos.programmer
  2. Path: sparky!uunet!microsoft!hexnut!jenk
  3. From: jenk@microsoft.com (Jen Kilmer)
  4. Subject: Re: Batch problem
  5. Message-ID: <1992Nov13.083205.25714@microsoft.com>
  6. Date: 13 Nov 92 08:32:05 GMT
  7. Organization: Microsoft Corporation
  8. References: <1dualbINN52t@usenet.INS.CWRU.Edu>
  9. Lines: 20
  10.  
  11. In article <1dualbINN52t@usenet.INS.CWRU.Edu> au240@cleveland.Freenet.Edu (Ari Pitkanen) writes:
  12. >
  13. >
  14. >How do I pass '%%f' to 'DoIt'? 
  15.  
  16. Well, I'd suggest making DoIt a separate batch file.
  17. Or move to using qbasic.
  18.  
  19. >:Main
  20. >cd scene
  21. >for %%f in (*.*) do call doit %%f    REM call doit.bat using %%f 
  22. >goto End
  23.  
  24. doit.bat
  25. >cd..
  26. >trace scene\%1                       REM %1 is parameter passed from Main
  27. >copy scene\%1 traced
  28. >del scene\%1
  29.  
  30. -jen
  31.