1
Post New Requests Here / Check file/folder similarity, rename file when similiraty occurs
« on: August 25, 2008, 06:37 AM »
I will try to explain my needs simply.
I'm looking for a script/soft which search in a specific folder (and all subfolders) for this :
examplefile1.msf (file with .msf extension)
examplefile1 (file with no extension)
examplefile1.sbd (simple folder)
In this situation the script would be able to detect there is a folder which have the same of a file. (like in the example up there)
and the script would rename the "file1.msf" to "file1.msf.old"
Basicaly it would to that :
-> you launch the soft/script
-> it ask for a folder's path
-> the script check for the similarity I explained up there
if
-> there is a file (.msf) who have the same name than a folder (finishing with .sbd) : it add .old to the extension (example = file.msf.old) or rename (if it's easier) the file from .msf to .old (example = file.old)
-> there is no folders which have the same name : nothing happens
Thanks !
I'm looking for a script/soft which search in a specific folder (and all subfolders) for this :
examplefile1.msf (file with .msf extension)
examplefile1 (file with no extension)
examplefile1.sbd (simple folder)
In this situation the script would be able to detect there is a folder which have the same of a file. (like in the example up there)
and the script would rename the "file1.msf" to "file1.msf.old"
Basicaly it would to that :
-> you launch the soft/script
-> it ask for a folder's path
-> the script check for the similarity I explained up there
if
-> there is a file (.msf) who have the same name than a folder (finishing with .sbd) : it add .old to the extension (example = file.msf.old) or rename (if it's easier) the file from .msf to .old (example = file.old)
-> there is no folders which have the same name : nothing happens
Thanks !