2

I have multiple folders under a root directory, within each is an icon (.ico) file which acts as the icon for the parent folder.

Unfortunately, a lot of these .ico files are named "Untitled-*.ico" (due to laziness!), and more importantly, the IconResource field in the desktop.ini files are all absolute filepaths (e.g. f:\library\folder1\folder2\untitled-1.ico,0), which is no good if the drive changes letter, for example (it's a removable drive), or folders are moved.

What I would like to do is:

A) Rename all those "untitled-*.ico" to folder.ico

B) Change all the desktop.ini files IconResource fields to "folder.ico,0" (hence removing the absolute file path from the name).

Any help/suggestions gratefully received.

timster
  • 21

1 Answers1

0

for A)Use a third party application to batch rename like this one http://www.den4b.com/?x=products&product=renamer

for B) use notepad++ , open all files simultaneously and use the find and replace in all open flies option. Use regular expression to search part of text starting f:/ and ending .ico

dbza
  • 510
  • 1
  • 5
  • 17