473,395 Members | 1,919 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Copy a folder to a new location

Hi,

I have seen many examples of moving a folder to a new location, but is there
a way to simply copy it instead?

For example, I want to copy the contents of folder C:\Testing\Stuff to
C:\Testing\Stuff\Backup. I have a program which reads files from the Testing
folder and so I don't want to move it, just make a copy. I realise I could
iterate through the files in Testing and move those, but I also have
subdirectories (with other subdirectories) which I would like to copy.
Copying the entire Testing folder would be the ideal way, but I could use
recursive techniques if I really have to.

Any ideas would be most welcome.
Apr 1 '07 #1
1 1807
http://www.dotnet247.com/247referenc.../16/83818.aspx

--
~~~~~~~~~~~
Ben Rush
http://www.ben-rush.net/blog
"cashdeskmac" <ca*********@discussions.microsoft.comwrote in message
news:AA**********************************@microsof t.com...
Hi,

I have seen many examples of moving a folder to a new location, but is
there
a way to simply copy it instead?

For example, I want to copy the contents of folder C:\Testing\Stuff to
C:\Testing\Stuff\Backup. I have a program which reads files from the
Testing
folder and so I don't want to move it, just make a copy. I realise I
could
iterate through the files in Testing and move those, but I also have
subdirectories (with other subdirectories) which I would like to copy.
Copying the entire Testing folder would be the ideal way, but I could use
recursive techniques if I really have to.

Any ideas would be most welcome.

Apr 2 '07 #2

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

Similar topics

8
by: Ram Baruch | last post by:
Hi, I'm trying to use the File.Copy() function. It works well when the desenation file is local (Like: C:\dest\dest.exe). The problem is that when I'm trying to copy to a destenation that starts...
3
by: Johnny | last post by:
Hi, I have created an ASP.NET application (let's call it FooBar) with VS.NET on my local machine, residing in http://localhost/FooBar. Deploying it to another folder on my machine works well...
1
by: Paul Smith | last post by:
I am new to using VB.net and am learning through a book, and it does not cover this well enough!!!! I have created a basic asp.net web page and can view this when my project is located on my...
1
by: Bala | last post by:
Hi all, First of all I just want to know this will work out or not. I am going to have a console application on my server. I am going to call that application from my asp.net page. i'll pass...
5
by: Saabster | last post by:
Hi all, It's always the simple stuff that trips you up I guess. Here is the issue I'm dealing with. I have a folder with 1400 excel files that I need to move to another location. Since each...
3
by: usman | last post by:
Hi I have a windows service that backups a folder onto another location on the same computer. The service is written in C#. The size of the original folder is large i.e. over 8 GB. Also the...
9
by: AWW | last post by:
Running XP - Visual Studio 2005 - VB Want to have duplicate projects - one safe and stable - other for experimenting Can't fine easy way to make duplicate project. Stupid question? or stupid ME?...
10
by: Jason | last post by:
I want to create a simple program with Two buttons on the form. BUTTON 1 - BACKUP PREFS this will do the following: Copy C:\Documents and Settings\%USERNAME%\Application Data\FileZilla...
1
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
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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
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
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,...

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.