Untitled
By: a guest | Feb 9th, 2010 | Syntax:
AutoIt | Size: 0.87 KB | Hits: 14 | Expires: Never
{
LV_GetText(FullFileName, A_Index, 1)
LV_GetText(FullFilePath, A_Index, 2)
Gosub, BatchRename
Gosub, RenameFile
OldFilePath:=FullFilePath "\" FullFileName
NewFilePath:=FullFilePath "\" NewName
If !
(OldFilePath
== NewFilePath
)
{
If (OldFilePath !
= NewFilePath
) && FileExist
(NewFilePath
)
{
SplitPath, NewName,,, FileExt, FileName
Loop
{
NewFilePath := FullFilePath "\" FileName "_" A_Index "." FileExt
IfNotExist, %NewFilePath%
}
}
LV_Modify(A_Index, "", NewName, FullFilePath)
NumOfFilesRenamed++
}
BackupRename := (BackupRename) ? (BackupRename "`n" NewFilePath ">" OldFilePath) : (NewFilePath ">" OldFilePath)
}