![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Join Date: Nov 2001
Location: Redmond, WA
Posts: 2,727
|
Anyone Have A Program That Will Do This?
I have 30 php files that I need to copy into 300 different folders (all under 1 root folder).
Is there a windows dos command that will do this or windows program? I can't seem to find one. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
WINNING!
Industry Role:
Join Date: Oct 2002
Posts: 14,579
|
1 - Get robocopy from Windows® Server 2003 Resource Kit Tools
http://www.microsoft.com/downloads/d...displaylang=en Install and find the file Robocopy.exe and put it in a folder you can find through DOS 2 - Export your list of dirs to a excel doc - place them in column B 3 - write: robocopy c:\sourcedir\ in column A 4 - in ColumC insert: /E /R:1 /W:5 /NC /LOG:log.txt 5 - now you will have 3 columns robocopy c:\sourcedir\ "listofdirs" /E /R:1 /W:5 /NC /LOG:log.txt 6 - Copy the lines in A and B down all the way in all the list 7 - Select all and copy 8 - open notepad and paste it in 9 - save it as copy.bat in the same dir as the robocopy file 10 - navigate to the dir in DOS and run the copy.bat file 11 - If you have questions, type robocopy /? in the dos prompt when you are located in the dir - it will give you a list of syntaxes. Or check google for the list, its there as well |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
WINNING!
Industry Role:
Join Date: Oct 2002
Posts: 14,579
|
it will produce a logfile called log.txt - you can see if it misses something and the rest of the progress
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
Join Date: Nov 2001
Location: Redmond, WA
Posts: 2,727
|
That makes my head spin! Isn't there an easier way?
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Do Fun Shit.
Industry Role:
Join Date: Dec 2004
Location: OC
Posts: 13,393
|
Bitch, Ctrl + C, Moan, Ctrl + V, Complain...
Rinse Wash Repeat...
__________________
![]() “I have the simplest tastes. I am always satisfied with the best.” -Oscar Wilde |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
Do Fun Shit.
Industry Role:
Join Date: Dec 2004
Location: OC
Posts: 13,393
|
On a more serious notice, If you have them loaded to your server and you have ssh I can help ya knock that out with a few commands...
__________________
![]() “I have the simplest tastes. I am always satisfied with the best.” -Oscar Wilde |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
WINNING!
Industry Role:
Join Date: Oct 2002
Posts: 14,579
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 |
pain in the Ass
Industry Role:
Join Date: Jan 2004
Posts: 3,727
|
Create a textfile and give each foldername its own line.
In BSD or Linux, go to the folder that contains the 30 scripts, copy with the "cp" command, use an asterisk for all files in the folder or *.php to select all php files and "copy to" the directories in the textfile you created. Just type "man cp" for details. And learn how to use regular expressions. Good Luck. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 |
赤い靴 call me 202-456-1111
Industry Role:
Join Date: Feb 2001
Location: The Valley
Posts: 14,831
|
From the time he posted this until when you posted in here. He'd have been finished using your method.
The one thing I've learned over the years: you'll generally spend more time and effort searching for and executing a new shortcut.
__________________
SPECIALTY COSTUMES • PROPS • FX Superheroes • Monsters • Robots PM for details For any manufacturing needs. Adult or otherwise. aka BonsHigh on Insta Bonsai weed plants |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#10 |
Confirmed User
Industry Role:
Join Date: Apr 2001
Location: Michigan
Posts: 4,487
|
Don't forget that the shortcut usually doesn't work right and fucksup so your bloodpressure goes crazy...
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#11 |
Confirmed User
Industry Role:
Join Date: Mar 2003
Location: ::::::::::::: :::::::::::||::::::::::: :::::::::::||::::::::::: :::::::::::||::::::::::: :::::::::::||::::::::::: :::::::::::||::::::::::: ::::::||||||||||||:::::: :::::::::::||::::::::::: :::::::::::||::::::::::: ::::::::::::::::::::::::
Posts: 7,197
|
Well since your dealing with php... write a php script to read every dir, maybe using scandir() which creates an array... then create a loop to copy the files to each location in the array.
I'm not a programmer but if you really want to call yourself a webmaster you need to pickup the basics of at least 1 programming language for situations like this. "Bullet For My Valentine - No Easy Way Out.mp3"
__________________
Amen |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#12 | |
Confirmed User
Join Date: Feb 2002
Location: ICQ: 251425 Fr/Au/Ca
Posts: 6,863
|
Quote:
![]() |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#13 |
Chafed.
Join Date: May 2002
Location: Face Down in Pussy
Posts: 18,041
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#14 |
Confirmed User
Join Date: Nov 2001
Location: Redmond, WA
Posts: 2,727
|
I found it and it works like a charm
Copy the files (CTRL+C) and then select the folders you want to paste into and in they go! http://www.theutilityfactory.com/ Last nite I pasted 28 files into 350 different folders by hand. My wrist was so sore I couldn't jerk off - and we just can't have that! |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#15 |
Meow Media Inc.
Industry Role:
Join Date: Jul 2001
Location: In the valley of the sun, cactus, tacos, tequila, and nod
Posts: 7,785
|
LoL.. that's what his been doing..
you forgot the whine though
__________________
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#16 |
Confirmed User
Join Date: Nov 2001
Location: Redmond, WA
Posts: 2,727
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#17 |
Confirmed User
Join Date: Mar 2008
Posts: 8,960
|
You can do it Bama. Good luck.
__________________
| _TeenageDecadence - Young Board Naked Teens. |
| ____ NonNudeGirls - Female Puberty Photos. ____ | | _ HerSelfPics - The ORIGINAL exGF SelfPic site. __ | \.______ xPosing - Wife Photosharing site. _______./ |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#18 | |
Do Fun Shit.
Industry Role:
Join Date: Dec 2004
Location: OC
Posts: 13,393
|
Quote:
![]() ![]()
__________________
![]() “I have the simplest tastes. I am always satisfied with the best.” -Oscar Wilde |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#19 |
Registered User
Join Date: Apr 2008
Location: underground
Posts: 251
|
With a bat file with some commands you can do it, I've done this b4 if you need help message me.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#20 |
Confirmed User
Join Date: Nov 2001
Location: Redmond, WA
Posts: 2,727
|
Take a look at this and you'll see just why having that program helped!
This is for 1 site......... ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |