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

List large files in directories.

I have 2 directories on a drive 0-499 and 500-999. Within these directories
are subdirectories - e.g. 1, 2 ,3 ..... 501,502 etc. There are a series of
files in these subdirectories. What I would like to do is search these
directories and display files above a certain size. Is there an easy way of
doing this in VB.NET??

Best wishes

Paul Bromley
Nov 27 '05 #1
2 1269
Paul,

"Paul Bromley" <fl*******@dsl.pipex.com> schrieb:
I have 2 directories on a drive 0-499 and 500-999. Within these directories
are subdirectories - e.g. 1, 2 ,3 ..... 501,502 etc. There are a series of
files in these subdirectories. What I would like to do is search these
directories and display files above a certain size. Is there an easy way of
doing this in VB.NET??


Take a look at the classes in the 'System.IO' namespace, namely 'File',
'FileInfo', 'Directory' (and its 'GetFile' method), and 'DirectoryInfo'.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 27 '05 #2
Thanks for this Herfried - I think I am getting their with this, in fact I
have achieved what I want to do in regard to finding the files. I am placing
these in a treeview, and my main problem now is omitting the directory
entries from the treeview where no large files exist. I will play with this
and ask the gorup if I cannot get it sorted.

Many thanks

Paul Bromley

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:ef*****************@TK2MSFTNGP12.phx.gbl...
Paul,

"Paul Bromley" <fl*******@dsl.pipex.com> schrieb:
I have 2 directories on a drive 0-499 and 500-999. Within these
directories are subdirectories - e.g. 1, 2 ,3 ..... 501,502 etc. There
are a series of files in these subdirectories. What I would like to do is
search these directories and display files above a certain size. Is there
an easy way of doing this in VB.NET??


Take a look at the classes in the 'System.IO' namespace, namely 'File',
'FileInfo', 'Directory' (and its 'GetFile' method), and 'DirectoryInfo'.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 28 '05 #3

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

Similar topics

2
by: Edvard Majakari | last post by:
Hi all ya unit-testing experts there :) Code I'm working on has to parse large and complex files and detect equally complex and large amount of errors before the contents of the file is fed to...
1
by: | last post by:
Hi- I was curious if anyone has had good luck using one of the commercial .NET FTP client libraries to perform massive LIST commands. I have tried various free libraries with no/little success,...
8
by: RML | last post by:
hey guys, i am looking at this piece of code that lists numbers of files in a directory. i want to convert it so it lists the files in th directory that end with .doc. i cant seem to get it to...
14
by: kpp9c | last post by:
I would like to use the power of Python to build some list structures for me. Namely i have organized a bunch of folders that have soundfiles in them and would like Python to slurp up all the...
4
by: thoseion | last post by:
Hi, I am trying to get a program working whereby directory and file names are read into a list. I have been given the original list structure - it appears that the directory names should be added...
7
by: =?Utf-8?B?QmlsbA==?= | last post by:
I want to get a list of the files in an FTP folder. I have seen the example of MSDN using the FtpWebRequest, and it's fairly trivial to execute an NLIST command, but the trouble is that this...
8
by: theCancerus | last post by:
Hi All, I am not sure if this is the right place to ask this question but i am very sure you may have faced this problem, i have already found some post related to this but not the answer i am...
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...
3
by: mshngo | last post by:
Hi, I have seen two main methods of organizing the header and source files in a C++ project. The first method separates the public header files from the remaining files (i.e., source files and...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.