|
-
Oct 28th, 2000, 08:02 AM
#1
Thread Starter
Lively Member
Hello,
The following routine populates a LISTVIEW control with a list of files that are contained in a text file. I would like to modify this so that the .EXE and .BAT files that are in a specific directory are loaded, for example, app.path
Is there any way to do this without doing a DIR *.EXE > FILES.LST, then loading the file, the deleting the file ?
Open App.Path & "\FILES.LST" For Input As #1
Do While Not EOF(1)
Line Input #1, STemp
Set liEntry = ListView1.ListItems.Add(, , STemp, 0, 0)
Loop
Close #1
Thanks,
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|