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,