473,508 Members | 2,040 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Copy Folders via ASP.NET

I have a relatiovely simple need.

I would like to have a webpage that a user can go to, fill out a couple of
fields, and then hit OK where the result is that a Folder Template is copied
and a new folder is created. The folders in question are on a IIS based
FTP server.

I am locking down the folder structure in an attempt to keep users from
creating tons of oddly named and managed folders. Instead, I would like all
new folder to be copies of a template that has the correct folder
permissions for each subfolder.

In general, this is easy. Use XCOPY, right? Well, I want to be able to do
it from a webpage.

Can anyone point me in the right direction? I know that System.IO.Directory
can create and read directories... but there is nothing there to copy a
directory, let alone keep the perms in tact.

Thanks
Nov 19 '05 #1
1 1300
I've used a code snippet from CodeProject to copy a directory ... As for
persisting security information, I'm not to sure. With a little
modification of the following code, you should be able to achieve your goal.

http://www.codeproject.com/csharp/co...srecursive.asp
--
Jay Douglas
http://jaydouglas.com
"Johnny Fugazzi" <re*******************@ldmkusa.com> wrote in message
news:eB**************@tk2msftngp13.phx.gbl...
I have a relatiovely simple need.

I would like to have a webpage that a user can go to, fill out a couple of
fields, and then hit OK where the result is that a Folder Template is
copied and a new folder is created. The folders in question are on a IIS
based FTP server.

I am locking down the folder structure in an attempt to keep users from
creating tons of oddly named and managed folders. Instead, I would like
all new folder to be copies of a template that has the correct folder
permissions for each subfolder.

In general, this is easy. Use XCOPY, right? Well, I want to be able to
do it from a webpage.

Can anyone point me in the right direction? I know that
System.IO.Directory can create and read directories... but there is
nothing there to copy a directory, let alone keep the perms in tact.

Thanks

Nov 19 '05 #2

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

Similar topics

3
6289
by: Jake | last post by:
I know how to copy files from one location to another but how would I go about copying a file from one directory into serveral - or actually all subdirectories in a single action? Some kind of...
3
1794
by: larry | last post by:
i would like to write a vb program to copy the contents of folder one to folder two. Folder one contains 30 folders with 10 files each.
8
2558
by: Paw | last post by:
Greetings. I use asp. what I need is is when a visitor comes to the site, I need it to check the host name. if "www.hometowndigest.com" is the host, then check a folder named "something" and if...
4
11722
by: sajid_yusuf | last post by:
Hi I am trying to develop a Windows service in VB.NET which has timer enabled and keeps checking a folder (or group of folders) for any new file or changed files. As soon as it detects any new...
3
2440
by: FredZimmerman | last post by:
Has anyone used nAnt script to simply copy folders and files from one location to another? I have a colleague who is suggesting this use of nAnt for our environment. I've heard of nAnt for...
4
2717
by: Tom | last post by:
Every week our web guys publish the web site to all of our servers by logging into the server and doing a copy - paiste. We want to elminate the developers from logging into each server and doing...
2
1317
by: Jeff | last post by:
....hope this question is on the right ng. The code below works to copy all files and folders from D:\Template to a new location that is specified by the user. Is there any easy way to modify...
1
3861
by: =?Utf-8?B?UVNJRGV2ZWxvcGVy?= | last post by:
Using .NET 2.0 is it more efficient to copy files to a single folder versus spreading them across multiple folders. For instance if we have 100,000 files to be copied, Do we copy all of them to...
1
1344
by: veer | last post by:
hi it looks a silly question but i m getting confused actually i want to copy folders from one location to another like from C:\abc To D:\xyz here abc and xyz are two folders in c and d drive it...
0
7226
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
7125
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
7388
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
5631
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5055
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
4709
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
3199
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
1561
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
767
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.