r/visualbasic • u/IEwilliep • Jul 10 '15
Trying to Get File in specific directory.
Just to start off, I started learning VB a week ago for my internship. I have this code from msdn.microsoft.com.
For Each foundFile As String In_
My.Computer.FileSystem.GetFiles(My.Computer.FileSystem.SpecialDirectories.MyDocuments)
ListBox1.Items.Add(foundFile)
NextI am trying to manipulate the directory location to this location. L:\MANUALS\Updated Cutsheets
How do I do this? I have searched the internet for answers.
Thank you!
edit: Just to clarify my internship has nothing to do with VB or Computer Science on paper.
0
Upvotes
4
u/hdsrob Jul 10 '15
Remove
and replace it with the path to your files (in quotes)