Greenguy's Board

Greenguy's Board (http://www.greenguysboard.com/board/index.php)
-   General Business Knowledge (http://www.greenguysboard.com/board/forumdisplay.php?f=10)
-   -   Does anyone know a way to paste into mutiple fiolders at once ? (http://www.greenguysboard.com/board/showthread.php?t=49996)

Tommy 2008-11-10 05:54 PM

Does anyone know a way to paste into mutiple fiolders at once ?
 
Does anyone know a way to paste into mutiple fiolders at once ?

like pasting an index.html into 100 folders at one time

I always like to ask this stuff cause I am sure these posts help hundreds of webmasters .. not just me :-)

MeatPounder 2008-11-10 06:26 PM

http://www.download3k.com/Install-Co...-Software.html

Max -RiotDesign 2008-11-10 08:15 PM

Or you could use the automator app and create a self-exec script or a finder plugin (if you're on mac of course)

xxxman 2008-11-10 08:52 PM

if you are on linux server, use this shell script

Code:

#! /bin/sh
for dir in /home/fiolder/* ; do
if test -d $dir ; then
cp -f /pathto/index.html $dir
fi
done


SirMoby 2008-11-12 12:34 PM

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


All times are GMT -4. The time now is 07:28 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc