Thank you for the information about appending new data to the old files...That's sounds more like what I am trying to do, but I have to try it out first. Can you show an example how to run a for loop to iterate this process over a couple of different drives while recursing into sub-directories as well?
I could put copy all the files onto one drive and run that code, but being that they are in different folders across a couple of drives, but that will defeat the purpose of my goal.
I've tried this which seems to do part of the job, but getting it to loop (iterate) through a couple of drives won't work for some reason
Must be tired-ness catching up with me.
Code:
pushd %*
for /r %%j in (*.txt) do if /I not "%%j"=="%~nx0" type nul > "%%j"
popd
I know the iteration part works like this:
Code:
@for %%d in (C D) do something
but the above code, is not playing nice with me tonight... Anyone care to take a shot at getting it?
Thanks everyone!
__________________
Made2Own
Last edited by Brian07002; 09-21-2010 at 11:19 PM..
|