Link to home
Start Free TrialLog in
Avatar of stevenabdul
stevenabdulFlag for United States of America

asked on

Windows Scripting

I need a script by the end of today to do the following.

search through folders I specify and then any subfolders listed within that folder
find all Excel files listed if it finds the text that I want replaced it will replace it. Save it and close
the file. so when I go to open the file it will already be changed.
Avatar of KenMcF
KenMcF
Flag of United States of America image

not a script but take a look at replace magic http://www.replacemagic.com/
This will do what you are looking for. It can be done in VBScript but might be a little hard.
Avatar of stevenabdul

ASKER

I have the script to replace the text but I need the part that will search through the folders and subfolders. I dont want to have to pay for the software as it will be a one time deal.
Avatar of Bill Prew
Bill Prew

So you will need to specify a list of "root" folders to scan, they aren't all under one parent?

And what file extension(s) do you want it to look for, just XLS, or others as well?

~bp
yes they are, it will be as an example c:\scripts\accounts\subfolders
Just XLS files
ASKER CERTIFIED SOLUTION
Avatar of Bill Prew
Bill Prew

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Billprew I will try this tomorrow and let you know how it turns out. Thanks
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
the script didnt work how I wanted, but these guys put forth the effort.