Advertisement
RaZgRiZ

execdir

Jul 25th, 2011
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.40 KB | None | 0 0
  1. // version with echo
  2.  
  3. execdir = [
  4.     ed_files = ""
  5.     loopfiles f $arg1 cfg [
  6.         append ed_files $f
  7.         exec (format "%1/%2.cfg" $arg1 $f)
  8.     ]
  9.     echo (format "^f2%1 ^f7config%2 executed within directory ^"^f2%3^f7^"" (listlen $ed_files) (? (= (listlen $ed_files) 1) " was" "s were") $arg1)
  10. ]
  11.  
  12. --------
  13.  
  14. // slim version for programmers
  15.  
  16. execdir = [loopfiles f $arg1 cfg [exec (format "%1/%2.cfg" $arg1 $f)]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement