home *** CD-ROM | disk | FTP | other *** search
/ Crawly Crypt Collection 2 / crawlyvol2.bin / utility / misc / master / batch / ofa.bat < prev    next >
DOS Batch File  |  1988-10-29  |  471b  |  28 lines

  1. set action $1
  2. set options $2
  3. set source $3
  4. set ofafiles $4
  5.  
  6. ifglobal UNIX {;} else {
  7.   Unix
  8.   set nounix
  9. }
  10. if UNIX in "26" {
  11.   set all *
  12. } else {
  13.   set all *.*
  14. }
  15. ifempty ofafiles {
  16.   rem Usage $0 action options sourcedir files
  17.   rem   Example $0 rm -i /bin *.ttp
  18. } else {
  19.   files -qd $source/$all
  20.   foreach cf in FILES do
  21.     $@ $action $options $source/$cf $ofafiles
  22.   endfor
  23.   $action $options $source/$ofafiles
  24. }
  25. iflocal nounix {
  26.   nounix
  27. }
  28.