Been searching the post but didn't find anything that would point me in the right way.
I just need to copy one file to a bunch of subfolders in in a main folder.
I just need to copy one file to a bunch of subfolders in in a main folder.
function CopyToAllFolders(strRoot,strFile) local tbFolders = Folder.Find(strRoot, "*", true, CallBack); if tbFolders then for index, strFolder in tbFolders do File.Copy(strFile, strFolder, true, true, false, true, nil); end end end CopyToAllFolders("c:\\test","c:\\test.rar")
Comment