Add lines to text files, and skip entire directories
Posted on 2006-11-22
Hi, I've had this batch file on here a couple times, but I need another addition to it:
for /r k:\ %%a in (application.cfm) do if exist %%a type line.txt >> "%%a"
This will search through a directory tree (here specified as the k:\ drive). It will add the text in line.txt to the eof of every Application.cfm that already exists. Now, I need an addition to this script to entirely skip specific directories. ie, I don't want this script to change anything in the CFIDE directory. Any ideas?