List All *.exe In %TEMP%

Conejo

Well-known member
Joined
Jul 24, 2013
Messages
65
Location
USA
Programming Experience
1-3
I have this code so far:

dim textbox1 as new textbox
textbox1.text = system.io.path.gettemppath & "\*.exe"

This works in scripts but its not working in vb.net, i googled but didnt find an answer can someone please help me?
 

jmcilhinney

VB.NET Forum Moderator
Staff member
Joined
Aug 17, 2004
Messages
14,397
Location
Sydney, Australia
Programming Experience
10+
You can use the Directory.GetFiles method to get a list of files from a specified folder. You know how to get the path of the temp folder and you know the file extension to filter by.
 
Top Bottom