By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,234 Members | 1,908 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,234 IT Pros & Developers. It's quick & easy.

copy entire folder to x path

P: n/a
Greetings.

I am well aware that visual studio.net (vb.net) has the option of using
their custom installer software, but i insist on creating my own.

I am relatively new, and so i am looking for a quick and easy solution.

I have a folder that we will call X. It has several sub directories and
files within.

I need an efficient way for retrieving a path name from the user through a
text box perhaps, and copying the X directory (all its contents) to the
destination path the user inputed.

I looked all over MSDN and found ways to copy files individually, but i need
to copy an entire folder.

Your help is greatly appreciated.
Nov 20 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Cor
Hi Kevin,

You cannot copy an entire folder, you have to do it file by file using a
loop

Cor
I am well aware that visual studio.net (vb.net) has the option of using
their custom installer software, but i insist on creating my own.

I am relatively new, and so i am looking for a quick and easy solution.

I have a folder that we will call X. It has several sub directories and
files within.

I need an efficient way for retrieving a path name from the user through a
text box perhaps, and copying the X directory (all its contents) to the
destination path the user inputed.

I looked all over MSDN and found ways to copy files individually, but i need to copy an entire folder.

Your help is greatly appreciated.

Nov 20 '05 #2

P: n/a
* "kevin" <ac*******@msn.com> scripsit:
I am well aware that visual studio.net (vb.net) has the option of using
their custom installer software, but i insist on creating my own.

I am relatively new, and so i am looking for a quick and easy solution.

I have a folder that we will call X. It has several sub directories and
files within.

I need an efficient way for retrieving a path name from the user through a
text box perhaps, and copying the X directory (all its contents) to the
destination path the user inputed.

I looked all over MSDN and found ways to copy files individually, but i need
to copy an entire folder.


P/invoke, C# sample:

<http://www.palmbytes.de/content/dotnetmisc/dl/shellfileoperation.zip>

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.