12-21-2016, 12:06 AM
Macro Macro16
;Supposed you have all the records contains in a text file called "records.txt"
;and it is on the desktop. You could change the location later.
;The directory on D drive is "Test", you could change it later, too.
;Then run this macro.
out
ARRAY(str) a
str folders.getfile("$desktop$\records.txt")
folders.findreplace(" " "" 8)
a=folders
str where="D:\Test" ;;change this
for int'i 0 a.len
,a[i].ReplaceInvalidFilenameCharacters("")
,;out a[i]
,mkdir a[i] where
,
out "All Done!"