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.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 11-24-2008, 04:34 AM   #1
Bama
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.
Bama is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-24-2008, 05:04 AM   #2
Machete_
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
Machete_ is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-24-2008, 05:04 AM   #3
Machete_
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
Machete_ is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-24-2008, 06:20 AM   #4
Bama
Confirmed User
 
Join Date: Nov 2001
Location: Redmond, WA
Posts: 2,727
That makes my head spin! Isn't there an easier way?
Bama is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-24-2008, 06:22 AM   #5
munki
Do Fun Shit.
 
munki's Avatar
 
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
munki is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-24-2008, 06:26 AM   #6
munki
Do Fun Shit.
 
munki's Avatar
 
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
munki is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-24-2008, 06:30 AM   #7
Machete_
WINNING!
 
Industry Role:
Join Date: Oct 2002
Posts: 14,579
Quote:
Originally Posted by Bama View Post
That makes my head spin! Isn't there an easier way?
you can do it - you are a smart guy


Alternatively you can google; Recursion copy
Machete_ is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-24-2008, 06:31 AM   #8
AnalProbe
pain in the Ass
 
AnalProbe's Avatar
 
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.

Last edited by AnalProbe; 11-24-2008 at 06:33 AM..
AnalProbe is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-24-2008, 06:39 AM   #9
RedShoe
赤い靴 call me 202-456-1111
 
RedShoe's Avatar
 
Industry Role:
Join Date: Feb 2001
Location: The Valley
Posts: 14,831
Quote:
Originally Posted by munki View Post
Bitch, Ctrl + C, Moan, Ctrl + V, Complain...

Rinse Wash Repeat...
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


RedShoe is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-24-2008, 06:58 AM   #10
The Heron
Confirmed User
 
Industry Role:
Join Date: Apr 2001
Location: Michigan
Posts: 4,487
Quote:
Originally Posted by RedShoe View Post
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.
Don't forget that the shortcut usually doesn't work right and fucksup so your bloodpressure goes crazy...
The Heron is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-24-2008, 07:00 AM   #11
- Jesus Christ -
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.

Quote:
Originally Posted by Bama View Post
That makes my head spin! Isn't there an easier way?
"Bullet For My Valentine - No Easy Way Out.mp3"
__________________

Amen
- Jesus Christ - is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-24-2008, 08:04 AM   #12
quantum-x
Confirmed User
 
quantum-x's Avatar
 
Join Date: Feb 2002
Location: ICQ: 251425 Fr/Au/Ca
Posts: 6,863
Quote:
Originally Posted by - Jesus Christ - View Post
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"
glob
quantum-x is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-24-2008, 08:16 AM   #13
gornyhuy
Chafed.
 
gornyhuy's Avatar
 
Join Date: May 2002
Location: Face Down in Pussy
Posts: 18,041
http://us3.php.net/copy
__________________

icq:159548293
gornyhuy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-02-2008, 11:36 PM   #14
Bama
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!
Bama is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-03-2008, 12:21 AM   #15
PersianKitty
Meow Media Inc.
 
PersianKitty's Avatar
 
Industry Role:
Join Date: Jul 2001
Location: In the valley of the sun, cactus, tacos, tequila, and nod
Posts: 7,785
Quote:
Originally Posted by munki View Post
Bitch, Ctrl + C, Moan, Ctrl + V, Complain...

Rinse Wash Repeat...
LoL.. that's what his been doing..

you forgot the whine though
PersianKitty is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-03-2008, 03:44 AM   #16
Bama
Confirmed User
 
Join Date: Nov 2001
Location: Redmond, WA
Posts: 2,727
Quote:
Originally Posted by PersianKitty View Post
LoL.. that's what his been doing..
you forgot the whine though
It benefits you too tho - I won't have to borrow your wrist now! :-)
Bama is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-03-2008, 03:48 AM   #17
StaceyJo
Confirmed User
 
StaceyJo's Avatar
 
Join Date: Mar 2008
Posts: 8,960
You can do it Bama. Good luck.
__________________
/_______ WebCashMaker ______\
| _TeenageDecadence - Young Board Naked Teens. |
| ____ NonNudeGirls - Female Puberty Photos. ____ |
| _ HerSelfPics - The ORIGINAL exGF SelfPic site. __ |
\.______ xPosing - Wife Photosharing site. _______./
StaceyJo is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-03-2008, 04:09 AM   #18
munki
Do Fun Shit.
 
munki's Avatar
 
Industry Role:
Join Date: Dec 2004
Location: OC
Posts: 13,393
Quote:
Originally Posted by Bama View Post
It benefits you too tho - I won't have to borrow your wrist now! :-)
__________________

I have the simplest tastes. I am always satisfied with the best.” -Oscar Wilde
munki is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-03-2008, 04:26 AM   #19
pornbling
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.
pornbling is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-03-2008, 05:09 AM   #20
Bama
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.........

Bama is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.