Copy and Send Multiple Files

Recommended Posts

styles3000 0

styles3000 0

I need a little help. A buddy of mine helped me write these two functions. The first function is to go into a folder and count the files for me. Which it does. The second function is primarily for transferring a .htm called "HOME-MASTER-PHP.htm" and changing the name to index.htm in the process.

What I'm In Need Of.......

I no longer need function 2 to "DirCreate", rather , or nor do I need the name changed to index.htm and longer, what I need it to do is to go to D:\Documents and Settings\Taevon Jones\Desktop\PAGE-MASTER-PHP.....copy it, then go to 'D:\Documents and Settings\Taevon Jones\My Documents\One a be HyperVRE Webpages' folder taking the number that was counted in Function 1($sTotalFiles) and paste there.

So if $sTotalFiles was 8, I need 8 copies of PAGE-MASTER-PHP's. If $sTotalFiles was 10, I need 10 copies of PAGE-MASTER-PHP's. If $sTotalFiles was 15, I need 15 copies of PAGE-MASTER-PHP's. Etc.....etc.

Share this post

Link to post

Share on other sites

Authenticity 12

Authenticity 12

For$i=1To$sTotalFilesFileCopy('D:\Documents and Settings\Taevon Jones\Desktop\HOME-MASTER-PHP.htm',_'D:\Documents and Settings\Taevon Jones\My Documents\One a be HyperVRE Webpages\'&$Firstline&$i&'\index.htm',8)Next

For multiple folders or:

For$i=1To$sTotalFilesFileCopy('D:\Documents and Settings\Taevon Jones\Desktop\HOME-MASTER-PHP.htm',_'D:\Documents and Settings\Taevon Jones\My Documents\One a be HyperVRE Webpages\'&$Firstline&'\index'&$i&'.htm',8)Next