View Single Post
Old 2008-11-12, 12:34 PM   #5
SirMoby
Jim? I heard he's a dirty pornographer.
 
SirMoby's Avatar
 
Join Date: Aug 2003
Location: Washington, DC
Posts: 2,706
I'm such a DOS geek. I just realized that I've been writing batch files for over half of my life

Either using the command prompt and CD to where all the directories are located or create a file in that location with the extension of .bat (like tommy.bat)

Then use the line below. Change the \index.html to the location of the file.

for /D %a in (*) DO xcopy \index.html %a

If you want to copy all the files in a directory such as index.html and the images directory that goes along with it. Swap out the \index with the directory name such as \template and add a /s at the end.

for /D %a in (*) DO xcopy \template %a /s
__________________
Make Serious Money With Hungarian Honeys From NS Cash
SirMoby is offline   Reply With Quote