Roland
Thu Jun 23 10:14:50 CDT 2005
"rodchar" wrote in message
news:18959928-6314-45C5-BBCB-F7411FE9573E@microsoft.com...
: i need to find all files that have an extention .txt,
: in all subfolders of a particular folder
: open that file,
: change 1 line,
: move to the next file
:
: is this possible?
Yes.
Use FileSystemObject, get a list of all subfolders in the current directory,
get a list of files in the current directory with an extension of ".txt",
create a loop, open each file, change the line, close and then while
subfolders still exist, recall your subroutine.
--
Roland Hall
/* This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose. */
Technet Script Center -
http://www.microsoft.com/technet/scriptcenter/
WSH 5.6 Documentation -
http://msdn.microsoft.com/downloads/list/webdev.asp
MSDN Library -
http://msdn.microsoft.com/library/default.asp