473,396 Members | 1,864 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,396 software developers and data experts.

selecting all a folder and all of its contents with openfiledialog in vb .net

I've asked this question before but now I need something different: I need
to select files using openfiledialog, which is easy enough. But I want to
select a file or files (multiselect) and also single click select a folder
or folders (double click would open the folder, as the openfiledialog now
does).

I don't want to just browse the folder. For example, when I cut a cd using
Record Now, it can select both files and entire folders and it then places
all of the contents, and the folder as a directory in the files to be
included on the cd.

Thanks for any help.

Bernie Yaeger
Nov 21 '05 #1
2 1369
Bernie,

That is often asked in this newsgroup, there is not a standard solution to
copy a directory.

When it was my problem however would try to make it with a Dos Xcopy
solution in a proccess.start and than hide that dos box with the
proccessstartinfo.windowstyle = ProcessWindowStyle.Minimized

I hope it helps anyway

Cor
Nov 21 '05 #2
Hi Cor,

Interesting idea, if a bit of a kludge - I'll give it a try.

Tx,

Bernie

"Cor Ligthert" <no************@planet.nl> wrote in message
news:e0****************@TK2MSFTNGP14.phx.gbl...
Bernie,

That is often asked in this newsgroup, there is not a standard solution to
copy a directory.

When it was my problem however would try to make it with a Dos Xcopy
solution in a proccess.start and than hide that dos box with the
proccessstartinfo.windowstyle = ProcessWindowStyle.Minimized

I hope it helps anyway

Cor

Nov 21 '05 #3

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

Similar topics

11
by: Mr. B | last post by:
If you can set the 'initial' path of an OpenFileDialog box by something like the following: Dim FilesPath As String ' Files Path FilesPath = "P:\Projects\" FilesPath =...
1
by: Olaf Baeyens | last post by:
In .NET v1.1 I am trying to select multiple files using OpenFileDialog like this OpenFileDialog openFileDialog=new OpenFileDialog(); openFileDialog.Multiselect=true; i...
4
by: MC D | last post by:
What's the best way to have a modal dialog that will only allow the selection of a FOLDER, rather than a file? Is there a property of the openFileDialog I'm missing, or is there another control...
4
by: Bernie Yaeger | last post by:
How can I get the openfiledialog to allow selection of a folder (subdirectory) and all of its contents? Thanks for any help. Bernie Yaeger
3
by: juststarter | last post by:
Hello all, I am using an openFileDialog box to select a file (in order to insert it in a database). When the file is selected i am filling a few textboxes with the actual path, filename and...
0
by: letibal | last post by:
Hello, I have written a windows service that runs under the LocalSystem account (launched when the computer boots up). This service launches a GUI that contains several...
2
by: junaid | last post by:
Hi, please help me i want to select multiple files including directories using OpenFileDialog, but i cant get directory name(s) in FileNames property i am using J#, VS2005 are there any method...
1
by: sam | last post by:
OpenFileDialog appears to be "holding onto" the parent folder of a selected file until the application using the dialog quits. After creating a folder containing a file, I attempted to select...
6
by: kimiraikkonen | last post by:
Hello, I have a listbox and folder browser control. I need to display all .mp3 files' pathes into listbox. It was Ok with openfiledialog but how can list all .mp3 extension- having files into...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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...

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.