Replace all code in a series of scripts

General Macro Scheduler discussion

Moderators: JRL, Dorian (MJT support)

Post Reply
kpassaur
Automation Wizard
Posts: 696
Joined: Wed Jul 07, 2004 1:55 pm

Replace all code in a series of scripts

Post by kpassaur » Mon Mar 23, 2009 12:20 pm

Does anyone know of a good search and replace for all files in a folder / subfolders that handles scripts?

I have downloaded numerous ones and they work with text files but not with .scp files. I have numerous scripts that I want to change a path on and ideally, I will not have to write a script that does it.

Any recommendations?

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Mon Mar 23, 2009 1:08 pm

Any text editor will work with .scp files - they're just text files. The file extension should not matter.

I know that these editors do search/replace in .scp files:

- Boxer
- EditPad Pro
- UltraEdit
- TopStyle is good at search/replace in files. TopStyle is designed for editing HTML/CSS but works just as well on .scp files.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

User avatar
Bob Hansen
Automation Wizard
Posts: 2475
Joined: Tue Sep 24, 2002 3:47 am
Location: Salem, New Hampshire, US
Contact:

Post by Bob Hansen » Mon Mar 23, 2009 3:22 pm

See TextPad and Wildedit from Helios at http://textpad.com/products/index.html
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!

User avatar
jpuziano
Automation Wizard
Posts: 1085
Joined: Sat Oct 30, 2004 12:00 am

Post by jpuziano » Mon Mar 23, 2009 4:19 pm

If you're looking for something free, you might try these:

Do Multiple Search & Replaces in Several Files with BKReplaceEm
http://www.makeuseof.com/tag/do-multipl ... replaceem/

BK ReplaceEm - search and replace tool
http://www.snapfiles.com/get/bkreplace.html

(newer version)Replace Text, formerly called BK ReplaceEm, is the free string-replacing utility for Windows.
http://www.ecobyte.com/replacetext/

"Replace Text" usage examples
http://www.ccp14.ac.uk/ccp14admin/bkreplacem/


Portable HTML batch edit
http://www.app-stick.com/proddetail.php?prod=HTMLbatch

A unique tool specifically designed to help webmasters, developers and any others to batch convert or operate on multiple files at the same time. It is specifically designed to operate on HTML files but you can use it on any type of files including binary ones.
jpuziano

Note: If anyone else on the planet would find the following useful...
[Open] PlayWav command that plays from embedded script data
...then please add your thoughts/support at the above post - :-)

User avatar
jpuziano
Automation Wizard
Posts: 1085
Joined: Sat Oct 30, 2004 12:00 am

Post by jpuziano » Thu Mar 26, 2009 6:10 am

Hi kpassaur,

I was just wondering if you chose a find and replace utility and how you made out. Here's another one you might find useful:

Advanced Find and Replace:
http://www.abacre.com/afr/index.htm

Its not free... but its the only search and replace utility I found that has the following ability:

AFR v1.6.0
· Feature: new option: keeping original file date after replace.

So basically, you can make changes to one or more files... and if you want... the "last modified" date on those files will not be changed.

Yes you could use a "touch" utility to effect the same thing... but you would have to save the original file timestamp info and restore it afterward with the touch utility... which is more work.

Handy to know if you need this ability...

Take care
jpuziano

Note: If anyone else on the planet would find the following useful...
[Open] PlayWav command that plays from embedded script data
...then please add your thoughts/support at the above post - :-)

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts