Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old February 27th, 2006, 12:25 AM
Jeff
Guest
 
Posts: n/a
Default creating/copying files

I have looked on the net, but obvious not in the correct place for this.

with this mega tourney site i am working on, i am thinking of several ways
to do this efficiently.
so what i want to do, is when a new tourney is created, create a folder on
my server that is named the id number of the tourney. this is the easy part.

next, i will have a temp folder with all the tourney files in it, that i
would want to copy to the new folder. but i have not found a good way to
copy these files.

can someone stear me in the right direction?

currently, i have been using querystrings to determine the correct id, and
it is working fine. i just think that doing it this wat, would be easuer to
keep each event seperate.

any help would be appreciated.

thanks
jeff


  #2  
Old February 27th, 2006, 01:55 PM
Jeff
Guest
 
Posts: n/a
Default Re: creating/copying files

Ok, so I did find this...

<html><body>

<%

Dim objFSO
Set objFSO = CreateObject("Scripting.FileSystemObject")
FSO.CopyFile "c:\Inetpub\wwwwroot\default.htm",
"c:\Inetpub\wwwwroot\backup\default.htm"

response.write "File copied."

%>

</body></html>

Now, something I haven't tried to do. Using that example above, it would
need to be copied to something like
c:\\Inetpub\\wwwroot\\(varTourney_ID)\default.htm

so how can i put a varibale in the path
"Jeff" <gig_bam@adelphia.net> wrote in message
news:vdKdnSvRkYNs3p_ZnZ2dnUVZ_s2dnZ2d@adelphia.com ...[color=blue]
>I have looked on the net, but obvious not in the correct place for this.
>
> with this mega tourney site i am working on, i am thinking of several ways
> to do this efficiently.
> so what i want to do, is when a new tourney is created, create a folder on
> my server that is named the id number of the tourney. this is the easy
> part.
>
> next, i will have a temp folder with all the tourney files in it, that i
> would want to copy to the new folder. but i have not found a good way to
> copy these files.
>
> can someone stear me in the right direction?
>
> currently, i have been using querystrings to determine the correct id, and
> it is working fine. i just think that doing it this wat, would be easuer
> to keep each event seperate.
>
> any help would be appreciated.
>
> thanks
> jeff
>[/color]


  #3  
Old February 27th, 2006, 03:15 PM
Jeff
Guest
 
Posts: n/a
Default Re: creating/copying files

ok.. i got it now. just have to work out the permissions.
thanks


"Jeff" <gig_bam@adelphia.net> wrote in message
news:vdKdnSvRkYNs3p_ZnZ2dnUVZ_s2dnZ2d@adelphia.com ...[color=blue]
>I have looked on the net, but obvious not in the correct place for this.
>
> with this mega tourney site i am working on, i am thinking of several ways
> to do this efficiently.
> so what i want to do, is when a new tourney is created, create a folder on
> my server that is named the id number of the tourney. this is the easy
> part.
>
> next, i will have a temp folder with all the tourney files in it, that i
> would want to copy to the new folder. but i have not found a good way to
> copy these files.
>
> can someone stear me in the right direction?
>
> currently, i have been using querystrings to determine the correct id, and
> it is working fine. i just think that doing it this wat, would be easuer
> to keep each event seperate.
>
> any help would be appreciated.
>
> thanks
> jeff
>[/color]


 

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles