1
Post New Requests Here / Re: Check file/folder similarity, rename file when similiraty occurs
« on: August 26, 2008, 03:27 AM »
Thanks VideoInPicture but skrommel already did a autohotkey which working nice
FileSelectFolder,folder,,2,Please select a folder
If folder=
ExitApp
Loop,%folder%\*.msf,0,1
{
SplitPath,A_LoopFileLongPath,name,dir,ext,name_no_ext,drive
IfExist,%dir%\%name_no_ext%.sbd
{
FileGetAttrib,attrib,%dir%\%name_no_ext%.sbd
IfInString,attrib,D
FileMove,%dir%\%name_no_ext%.msf,%dir%\%name_no_ext%.msf.old
}
}
If folder=
ExitApp
Loop,%folder%\*.msf,0,1
{
SplitPath,A_LoopFileLongPath,name,dir,ext,name_no_ext,drive
IfExist,%dir%\%name_no_ext%.sbd
{
FileGetAttrib,attrib,%dir%\%name_no_ext%.sbd
IfInString,attrib,D
FileMove,%dir%\%name_no_ext%.msf,%dir%\%name_no_ext%.msf.old
}
}