473,405 Members | 2,373 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,405 software developers and data experts.

Listing Files and Folders

Hi,

I would like to list all the folders and files on my harddrive in
two seperate parts of the window (one part for folders, other part for
files). Also, when clicking one of the folders shown, it should open
its subfolders and list again its folders and files in the other part
of the window. I was trying to use ListView and TreeView components,
but I don't have the slightest clue how to use them and if I should
use one of those.
Can someone recommend me some link, on how to do something I
described above.
Thanks in Advance
Nov 16 '05 #1
2 3834
Hi Xarky,

these controls treeview and listview are simply great..you can get the
source code for one of the tools listed in here.. check out report viewer
tool..
http://www28.brinkster.com/avdotnet

hth

"Xarky" <be*********@yahoo.com> wrote in message
news:bc*************************@posting.google.co m...
Hi,

I would like to list all the folders and files on my harddrive in
two seperate parts of the window (one part for folders, other part for
files). Also, when clicking one of the folders shown, it should open
its subfolders and list again its folders and files in the other part
of the window. I was trying to use ListView and TreeView components,
but I don't have the slightest clue how to use them and if I should
use one of those.
Can someone recommend me some link, on how to do something I
described above.
Thanks in Advance

Nov 16 '05 #2
hi
you can use the FileInfo and DirectoruInfo classes to do that

regards
Ansil

"Xarky" wrote:
Hi,

I would like to list all the folders and files on my harddrive in
two seperate parts of the window (one part for folders, other part for
files). Also, when clicking one of the folders shown, it should open
its subfolders and list again its folders and files in the other part
of the window. I was trying to use ListView and TreeView components,
but I don't have the slightest clue how to use them and if I should
use one of those.
Can someone recommend me some link, on how to do something I
described above.
Thanks in Advance

Nov 16 '05 #3

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

Similar topics

10
by: Chris | last post by:
Hi, Not sure if this is the right forum, but hopefully someone can help me. I am creating something for our intranet and i want to list the files and folders of a directory, i found some code...
0
by: Neil Stevens | last post by:
Hi, I have a number of websites on a server and want to be able to list all the files in various folders on a webpage. Is it possible to achive this across several website. Example...
1
by: Deasun | last post by:
Good evening, How would I go about this? I have a smartclient windows app that I want to display the subfolders and files that are inside a folder on my hosts webserver. Would I have to have...
1
by: nuggies | last post by:
I'm developing an ASP.NET 2.0 (C#) application in which I need to display the available shared folders on the server. The shared folder paths need to be in UNC format (i.e., \\servername\share)...
8
by: gil | last post by:
Is it possible to prevent a browser from listing the entire contents of a folder? The site, is hosted on my ISP with the following layout- site/ "user name from ISP" pagefile (dir)...
0
by: Seok Bee | last post by:
Hi All, Currently I have a storage server to allow users to store their files in a central location. In this server, there are many sub-folders for different departments. What I would like to...
3
by: Daniel C. Di Vita | last post by:
I am stating to write a small app that allows a user to catalog their CD/dvd collection. I need some help, however. Here is some test code I wrote for the recursive listing: Imports System...
3
by: Kimera.Kimera | last post by:
I'm trying to write a program in VB.net 2003 that basically deletes all files, folders, sub-folders and sub-sub folders (etc). The program is simply for deleting the Windows/Temp folder contents,...
1
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
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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
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.