Script to Update Multiple Files in a Directory

R

rheigl

I need a script to process all of the files in a directory (and
sub-directories). Nearly all of the .ASX files have an out-of-date
Copyright date.

Example:

<ASX version = "3.0">
<TITLE>Hello World</TITLE>
<ENTRY>
<AUTHOR>Me</AUTHOR>
<COPYRIGHT>Copyright © 1995-2000 Me, Inc.</COPYRIGHT>
</ENTRY>
</ASX>

The <COPYRIGHT> tag needs to be updated to be -2006. Each file is
different. Some may have 2000, others may have 2001, etc. The opening
date could be 1995, or something else. Those need to stay whatever they
were in the file. ONLY change the "to" date.

For this, the script has to take the whole set of ASX files, update
them.
 
R

Randy Webb

(e-mail address removed) said the following on 11/2/2006 4:16 PM:
I need a script to process all of the files in a directory (and
sub-directories). Nearly all of the .ASX files have an out-of-date
Copyright date.

Example:

<ASX version = "3.0">
<TITLE>Hello World</TITLE>
<ENTRY>
<AUTHOR>Me</AUTHOR>
<COPYRIGHT>Copyright © 1995-2000 Me, Inc.</COPYRIGHT>
</ENTRY>
</ASX>

The <COPYRIGHT> tag needs to be updated to be -2006. Each file is
different. Some may have 2000, others may have 2001, etc. The opening
date could be 1995, or something else. Those need to stay whatever they
were in the file. ONLY change the "to" date.

For this, the script has to take the whole set of ASX files, update
them.

Download Notetab: <URL: http://www.notetab.com/> Then open all your ASX
files (Notetab, when you do File>Open you can open *.ASX and it will
open them all at once). Then do a global search/replace and replace them
all. Then save them all. No Javascript needed. And, client side script
can't modify server side files.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,074
Latest member
StanleyFra

Latest Threads

Top