Easiest Way To Upload 1 File To 5000 Individual Directorys?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • European Lee
    Confirmed User
    • Dec 2002
    • 7133

    #1

    Easiest Way To Upload 1 File To 5000 Individual Directorys?

    Anyone happen to know the answer to this?

    I dont feel like FTP'ing into each directory manually and uploading the file LOL

    Regards,

    Lee
    YOUR TRAFFIC IS SAFE WITH US - CONDOM CASH
    PUTTING THE GAY ADULT INDUSTRY ON YOUR PC!!
    AFFORDABLE 2257 COMPLIANT GAY + BI CONTENT
  • Repetitive Monkey
    Confirmed User
    • Feb 2004
    • 3505

    #2
    Make a FTP script with a loop that goes through an array of FTP IPs/logins.

    Comment

    • Jay_StandAhead
      Confirmed User
      • Jul 2002
      • 3103

      #3
      symlink

      run a simple shell script that'll create symlinks to your file (so you save on HD space too)

      would take 5 minutes for a good programmer to do

      Our Programs: StandAhead | IndieBucks | BoyCrushCash | Phoenixxx | EmoProfits | BritishBucks | HunkMoney | LatinoBucks
      Make $$$ with Gay! Lowest Minimum Payouts in the Business, Perfect Track Record, Amazing Sites

      Comment

      • Jay_StandAhead
        Confirmed User
        • Jul 2002
        • 3103

        #4
        or whip out the good old ghost mouse!

        Our Programs: StandAhead | IndieBucks | BoyCrushCash | Phoenixxx | EmoProfits | BritishBucks | HunkMoney | LatinoBucks
        Make $$$ with Gay! Lowest Minimum Payouts in the Business, Perfect Track Record, Amazing Sites

        Comment

        • Repetitive Monkey
          Confirmed User
          • Feb 2004
          • 3505

          #5
          Or ModRewrite if the paths and names are somewhat patterned.

          Comment

          • kondro
            Registered User
            • Nov 2004
            • 23

            #6
            You could do something this:

            1. Upload file to temporary directory.

            2. Use the following script:

            find /base/dir -type d | xargs cp /tmp/dir/file

            This will copy the file in the temporary directory to any directory under the /base/dir directory.

            You could do a similar thing with symlink, just make sure not to delete the original and I would suggest using absolute paths.

            Comment

            • European Lee
              Confirmed User
              • Dec 2002
              • 7133

              #7
              Originally posted by kondro
              You could do something this:

              1. Upload file to temporary directory.

              2. Use the following script:

              find /base/dir -type d | xargs cp /tmp/dir/file

              This will copy the file in the temporary directory to any directory under the /base/dir directory.

              You could do a similar thing with symlink, just make sure not to delete the original and I would suggest using absolute paths.
              Thats more along the lines of what i was looking for thanks

              Out of interest though..

              Will that copy the files into the sub directory of the initial sub directorys also?

              domain.com/dir/subdir is where i need them to go not..

              domain.com/dir/subdir/subdir

              Regards,

              Lee
              YOUR TRAFFIC IS SAFE WITH US - CONDOM CASH
              PUTTING THE GAY ADULT INDUSTRY ON YOUR PC!!
              AFFORDABLE 2257 COMPLIANT GAY + BI CONTENT

              Comment

              • cfU
                Confirmed User
                • Jan 2003
                • 933

                #8
                <cfdirectory action="LIST"
                name="fiveGFolderName"
                directory="C:\Inetpub\wwwroot\folderOfFiveGs"
                sort="name asc">

                <cfif fiveGFolderName.recordcount>
                <cfloop query="fiveGFolderName">
                <cffile action="UPLOAD" fileField="yourFuckingFile"
                destination = "C:\Inetpub\wwwroot\folderOfFiveGs\#fiveGFolderNam e.name#\"
                nameconflict="MAKEUNIQUE" accept ="image/*,application/msword,text/*">
                </cfloop>
                </cfif>

                Comment

                Working...