Home All Groups Group Topic Archive Search About
Author
2 Jul 2009 7:37 AM
win
I have to write a list of all files of  hd in a text file with the file
name, date, etc. ....

Is there any mechanism or method known or ready and quick?

Thanks

Author
2 Jul 2009 7:49 AM
AGP
yeah, look in the snippets as that is very common.

AGP

Show quoteHide quote
"win" <win@win> wrote in message
news:4a4c63cb$0$18927$4fafbaef@reader2.news.tin.it...
>I have to write a list of all files of  hd in a text file with the file
>name, date, etc. ....
>
> Is there any mechanism or method known or ready and quick?
>
> Thanks
>
Author
2 Jul 2009 8:25 AM
win
> yeah, look in the snippets as that is very common.

What is the most efficient?

Thanks.
Author
2 Jul 2009 9:00 AM
Stephany Young
Try them and find out.


Show quoteHide quote
"win" <win@win> wrote in message
news:4a4c6eff$0$18938$4fafbaef@reader2.news.tin.it...
>> yeah, look in the snippets as that is very common.
>
> What is the most efficient?
>
> Thanks.
>
Author
2 Jul 2009 12:56 PM
Joe Cool
On Jul 2, 3:37 am, "win" <win@win> wrote:
> I have to write a list of all files of  hd in a text file with the file
> name, date, etc. ....
>
> Is there any mechanism or method known or ready and quick?
>
> Thanks

http://groups.google.com/group/microsoft.public.dotnet.languages.vb/browse_thread/thread/e45ed34383afbeaa/c2ef110c6e2eece5?hl=en&lnk=gst&q=enumdir#c2ef110c6e2eece5
Author
2 Jul 2009 2:00 PM
Joe Cool
On Jul 2, 8:56 am, Joe Cool <joecool1***@live.com> wrote:
> On Jul 2, 3:37 am, "win" <win@win> wrote:
>
> > I have to write a list of all files of  hd in a text file with the file
> > name, date, etc. ....
>
> > Is there any mechanism or method known or ready and quick?
>
> > Thanks
>
> http://groups.google.com/group/microsoft.public.dotnet.languages.vb/b...

Followup to my last. This will give you a list of ALL files on the
specified device. It is then up to you to loop through the collection
of files, and use either the FileInfo or the Path class to determine
the extention of the file and operate on it appropriately. To operate
based of filecreation date or other properties you will need to use
the FIleInfo class instead of the Path class.