![]() |
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 |
Make a FTP script with a loop that goes through an array of FTP IPs/logins.
|
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 |
or whip out the good old ghost mouse!
|
Or ModRewrite if the paths and names are somewhat patterned.
|
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. |
Quote:
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 |
<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> :1orglaugh :1orglaugh :1orglaugh |
All times are GMT -7. The time now is 10:17 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123