473,466 Members | 1,404 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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
Feb 27 '06 #1
2 1102
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" <gi*****@adelphia.net> wrote in message
news:vd******************************@adelphia.com ...
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

Feb 27 '06 #2
ok.. i got it now. just have to work out the permissions.
thanks
"Jeff" <gi*****@adelphia.net> wrote in message
news:vd******************************@adelphia.com ...
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

Feb 27 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Alex Vinokur | last post by:
Copying files : input to output =============================== C/C++ Performance Tests ======================= Using C/C++ Program Perfometer http://sourceforge.net/projects/cpp-perfometer...
0
by: Dan | last post by:
We debug a VB.Net App that uses compact framework to a DAP Windows CE.Net device. When I debug I would like to only have the EXE copied down. Right now it copies any referrences as well and...
3
by: kris.dorey | last post by:
Hi, Ive got the following code which seems ok but when the user runs the function for a second time I get an error message stating that the mdb is in use by another process. There is still an...
2
by: Michael.Covington | last post by:
I am trying to create a DTS package using C#. I have done this in VB6 without any problems. However, when I convert everything over to C# I get the 'System.InvalidCastException'. I am running...
10
by: Martin Ho | last post by:
I am running into one really big problem. I wrote a script in vb.net to make a copy of folders and subfolder to another destination: - in 'from.txt' I specify which folders to copy - in...
5
by: Sam777 | last post by:
I was under the impression that creating the app_offline.htm file at the root of the webapp would cause all handles to be closed so that the app could be removed. Unfortunately, this isn't the...
2
by: Edhy Rijo [Progytech] | last post by:
Hi All, I am learning VB.NET and building small application that will do the following: 1.. Copy all files from a DVD to a specific folder in the hard drive and overwrite all files always. The...
3
by: Bartholomew Simpson | last post by:
I am writing some C++ wrappers around some legacy C ones - more specifically, I am providing ctors, dtors and assignment operators for the C structs. I have a ton of existing C code that uses...
6
by: kimiraikkonen | last post by:
Hi, I use system.io.file class to copy files but i have a difficulty about implementing a basic / XP-like progress bar indicator during copying process. My code is this with no progress bar,...
2
by: oswald.harry | last post by:
hi i am reading a set of jpeg files(RGB) and extracts the pixel values as longs.i want to create a 2d array with numof rows=numof images and numof cols=numof pixels in each image.ie each row of...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.