Re: Create, edit file list?

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Randy Birch (rgb_removethis_at_mvps.org)
Date: 07/01/04


Date: Wed, 30 Jun 2004 21:38:13 -0400

Which haven't you gotten to work. If there are instructional errors (or code
errors) I would appreciate knowing so I can check them out/fix them. And if
the instructions are not clear, what needs improving?

For what it's worth, I just built the recursive demo
(http://vbnet.mvps.org/code/fileapi/recursivefiles%5Fminimal%5Fmultipleselective.htm)
from the site code following the instructions there and it worked right out
of the box, so to speak. You don't have to create the precise layout ...
just throw the controls on the form, click the 'copy form code' button,
paste the code into the general declarations section of the form, and start
using Run > Start with full compile to catch any transposition errors before
the code is run. The demo found 1,613 files in 0.30 seconds.

-- 
Randy Birch
MVP Visual Basic
http://vbnet.mvps.org/
Please respond only to the newsgroups so all can benefit.
"Ed" <Ed_Millis@NOSPAM.Hotmail.com> wrote in message 
news:ONXRXetXEHA.644@TK2MSFTNGP10.phx.gbl...
: Thanks for replying, Chris.  I've seen those before, but I think they're
: quite a bit more than I want.  (Or can handle right now!  I've tried using
: some of those codes, but have never been able to make them work, and I 
don't
: understand enough to know what's wrong.)  I apologize for not being more
: clear with my question.
:
: I know (from a book, but haven't done it) that I can list the files and
: folders on a drive using the DirListBox and FileListBox controls.  They 
look
: easy enough to implement, but - before I spend two days trying to make 
them
: do something they're not designed for! - can I use them to get the full 
path
: name of the folder or file showing so I can write that string to a list? 
Or
: is there a better way (at a beginner level)?
:
: I would also want to be able to edit the list, and delete any file/folder
: path listed (not Kill the file - sorry again for being unclear).  Is this
: easier done with a certain file type (Word, Excel, plain text, etc.)?  I
: imagine viewing the list would be a matter of iterating through the
: paragraphs/rows of the file and creating a list box of the contents.  If I
: wanted to delete an item from the list, then I suppose I would have to 
grab
: the row/paragraph number of what I see displayed, and delete that line? 
Am
: I on the right track?  Or heading fast towards a brick wall?
:
: Ed
:
: "Veign" <NOSPAMinveign@veign.com> wrote in message
: news:OmH6qCtXEHA.3552@TK2MSFTNGP12.phx.gbl...
: > Minimal Code for a Single or Multiple File Extension Inclusive/Exclusive
: > Recursive Search for Files (single drive)
: >
: 
http://vbnet.mvps.org/index.html?code/fileapi/recursivefiles%5Fminimal%5Fmultipleselective.htm
: >
: > Minimal Code for a Single or Multiple File Extension Recursive Search 
for
: > Files (single drive)
: >
: 
http://vbnet.mvps.org/index.html?code/fileapi/recursivefiles%5Fminimal%5Fmultiple.htm
: >
: >
: > To delete a file look at the 'Kill' Statement
: >
: > -- 
: > Chris Hanscom
: > MVP (Visual Basic)
: > http://www.veign.com
: > --
: >
: > "Ed" <Ed_Millis@NOSPAM.Hotmail.com> wrote in message
: > news:eG4dc$sXEHA.3420@TK2MSFTNGP12.phx.gbl...
: > > This is probably basic and simple, but I'm not sure how to do this. 
I'd
: > > like to create a file list by browsing, like using the Windows 
Explorer.
: > > I'd want to be able to add the full file path for any file or folder
: > > selected to a list of some kind (Word, Excel, .txt file?).  I'd also
: need
: > to
: > > be able to read the list and selectively delete anything on the list.
: > What
: > > functions and controls should I be looking at?
: > >
: > > TIA
: > > Ed
: > >
: > >
: >
: >
:
: 

Quantcast