Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- execdir = [
- dir = $arg1
- i = 0
- loopfiles f $dir cfg [
- file = (format "%1/%2.cfg" $dir $f)
- i = (+ $i 1)
- exec $file
- if (!=s $f $dir) [foldernotfound = 1] [foldernotfound = 0]
- ]
- if $foldernotfound [echo (format "^f6INFO: ^f4'%1' was not found" $dir)] [echo (format "^f6INFO: ^f4Executed %1 files in '%2'" $i $dir)]
- ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement