Anyone Have A Program That Will Do This?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Bama
    Confirmed User
    • Nov 2001
    • 2727

    #1

    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.
  • Machete_
    WINNING!
    • Oct 2002
    • 14579

    #2
    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

    Comment

    • Machete_
      WINNING!
      • Oct 2002
      • 14579

      #3
      it will produce a logfile called log.txt - you can see if it misses something and the rest of the progress

      Comment

      • Bama
        Confirmed User
        • Nov 2001
        • 2727

        #4
        That makes my head spin! Isn't there an easier way?

        Comment

        • munki
          Do Fun Shit.
          • Dec 2004
          • 13393

          #5
          Bitch, Ctrl + C, Moan, Ctrl + V, Complain...

          Rinse Wash Repeat...

          I have the simplest tastes. I am always satisfied with the best.” -Oscar Wilde

          Comment

          • munki
            Do Fun Shit.
            • Dec 2004
            • 13393

            #6
            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

            Comment

            • Machete_
              WINNING!
              • Oct 2002
              • 14579

              #7
              Originally posted by Bama
              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

              Comment

              • AnalProbe
                pain in the Ass
                • Jan 2004
                • 3727

                #8
                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, 04:33 AM.

                Comment

                • RedShoe
                  赤い靴 call me 202-456-1111
                  • Feb 2001
                  • 14831

                  #9
                  Originally posted by munki
                  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


                  Comment

                  • The Heron
                    Confirmed User
                    • Apr 2001
                    • 4496

                    #10
                    Originally posted by RedShoe
                    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...

                    Comment

                    • - Jesus Christ -
                      Confirmed User
                      • Mar 2003
                      • 7197

                      #11
                      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.

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

                      Amen

                      Comment

                      • quantum-x
                        Confirmed User
                        • Feb 2002
                        • 6863

                        #12
                        Originally posted by - Jesus Christ -
                        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
                        PrettyInCash.com - BoozedGFs.com - TeenGFs.com - JizzGFs.com- MilfUploads.com -

                        Comment

                        • gornyhuy
                          Chafed.
                          • May 2002
                          • 18041

                          #13
                          http://us3.php.net/copy

                          icq:159548293

                          Comment

                          • Bama
                            Confirmed User
                            • Nov 2001
                            • 2727

                            #14
                            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!

                            Comment

                            • PersianKitty
                              Meow Media Inc.
                              • Jul 2001
                              • 7785

                              #15
                              Originally posted by munki
                              Bitch, Ctrl + C, Moan, Ctrl + V, Complain...

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

                              you forgot the whine though

                              Comment

                              • Bama
                                Confirmed User
                                • Nov 2001
                                • 2727

                                #16
                                Originally posted by PersianKitty
                                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! :-)

                                Comment

                                • StaceyJo
                                  Confirmed User
                                  • Mar 2008
                                  • 8960

                                  #17
                                  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. _______./

                                  Comment

                                  • munki
                                    Do Fun Shit.
                                    • Dec 2004
                                    • 13393

                                    #18
                                    Originally posted by Bama
                                    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

                                    Comment

                                    • pornbling
                                      Registered User
                                      • Apr 2008
                                      • 251

                                      #19
                                      With a bat file with some commands you can do it, I've done this b4 if you need help message me.

                                      Comment

                                      • Bama
                                        Confirmed User
                                        • Nov 2001
                                        • 2727

                                        #20
                                        Take a look at this and you'll see just why having that program helped!

                                        This is for 1 site.........

                                        Comment

                                        Working...