Advertisement
Guest User

Untitled

a guest
Sep 24th, 2017
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. execdir = [
  2.     dir = $arg1
  3.     i = 0
  4.  
  5.     loopfiles f $dir cfg [
  6.             file = (format "%1/%2.cfg" $dir $f)
  7.             i = (+ $i 1)
  8.             exec $file
  9.         if (!=s $f $dir) [foldernotfound = 1] [foldernotfound = 0]
  10.     ]
  11.  
  12.     if $foldernotfound [echo (format "^f6INFO: ^f4'%1' was not found" $dir)] [echo (format "^f6INFO: ^f4Executed %1 files in '%2'" $i $dir)]
  13. ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement