Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <File.au3>
- BulkRename()
- Func BulkRename()
- Local $sPath = "C:\Temp"
- Local $aFolders = _FileListToArray($sPath, '*', $FLTA_FOLDERS, True)
- If @error Then Return False ; If an error occurred
- Local $sSuffix = '_renamed'
- For $i = 1 To $aFolders[0]
- ConsoleWrite($aFolders[0])
- DirMove($aFolders[$i], $aFolders[$i] & $sSuffix)
- Next
- Return True
- EndFunc
Advertisement
Add Comment
Please, Sign In to add comment