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

  1. Newsgroups: comp.os.msdos.programmer
  2. Path: 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
  3. From: yawei@bronze.ucs.indiana.edu (~{QG9p~})
  4. Subject: Re: Batch problem
  5. Message-ID: <BxoqCn.Ly7@usenet.ucs.indiana.edu>
  6. Sender: news@usenet.ucs.indiana.edu (USENET News System)
  7. Nntp-Posting-Host: bronze.ucs.indiana.edu
  8. Organization: Indiana University
  9. References: <1dualbINN52t@usenet.INS.CWRU.Edu>
  10. Date: Sat, 14 Nov 1992 02:45:59 GMT
  11. Lines: 32
  12.  
  13. In article <1dualbINN52t@usenet.INS.CWRU.Edu> au240@cleveland.Freenet.Edu (Ari Pitkanen) writes:
  14.  
  15. >How do I pass '%%f' to 'DoIt'?  This approach don't work.
  16.  
  17. Others have suggested two-file solutions. Here's a one-file
  18. solution:
  19.  
  20. [I justed added one line at the beginning, and did some changes
  21. with the for line and the lines with %%f. Not responsible for
  22. any other syntax problems. :-) ]
  23.  
  24.   Ya-Gui Wei
  25.  
  26. --------------
  27. if not /%1==/ goto DoIt
  28. :Main
  29. cd scene
  30. for %%f in (*.*) do call %0 %%f   REM copy filename to %%f
  31. goto End
  32.  
  33. :DoIt
  34. cd..
  35. trace scene\%1                 REM %1 contains each instance of %%f in
  36.                                    recursive calls
  37. copy scene\%1 traced
  38. del scene\%1
  39. cd..
  40. goto Main
  41.  
  42. :End
  43. cd..
  44.  
  45.