Project:
To install an application and find on hard drive files and rename extension for unnecessary files. I need to do full search for TestFile1.dll and TestFile2.dll. When found rename files to TestFile1.dl and TestFile2.dl. If files are not found to display error message. These file can reside on either C: or D: so I would need to search multiple drives.
I can have it rename files at the known drive letter and folder(C:\Blah) but I would like for the script to "FIND"(search C: D: E: ) incase it isn't the default folder.
I managed to search C:\ drive and when not found error message came up but when found files it would not rename(script error) with this example:
result = File.Find("WindowsRoot=String.Left(_WindowsFolder, 3)", "TestFile1.dll", true, true, nil);
if result == nil then
Message = file not found
else
Rename =
end
(adapted from TJTigger in forums)
Can anyone help, almost giving up.

That's really cool!
