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 2 3851
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*********@ya hoo.com> wrote in message
news:bc******** *************** **@posting.goog le.com... 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
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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 to do this.
The only problem is that it lists the asp file used to for example if i go to:
"http://myserver/listing.asp" In the file listing will be "listing.asp"
amongst a lot of marketing documents.
|
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
mylistingsite.com will list the files in various folders from a number of
websites
|
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 a webservice on my site that would read the sub-folders
and files and then send this back to the smartclient as a dataset ?
i am just not sure which way to go to do this.
|
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) and need to be clickable links.
Upon clicking the link a textbox needs to be populated with the full UNC
path.
I don't need to read, write, edit, delete, etc. files or folders, I simply
need to list all the shared folders and get its full UNC...
|
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)
index.html
site/pagefile/
| |
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 do is to have a script to generate a listing that will
show in each folder who are the users accessible to the folder and what are
the permission granted to them.
|
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
Imports System.IO
Public Class MainClass
Dim AllText As String = ""
Shared Sub Main()
|
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,
removing all the files/folders inside it.
The problem i am having is that i can only delete files in the
Windows/Temp folder, and i can't delete folders if they contain files,
i know that you can't do this.
|
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 a single folder called 'All Files'
Do we spread them out and copy them to multiple folders like
Folder 000 - Copy files from 0 to 1000
Folder 001 - Copy files from 1000 to 2000
Folder 002 - Copy files from 2000 to 2999
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |