xsM = String with a
FullPath of a .File.
.i would like to load win.explorer with
Here is what you might be looking for:
Dim filePath As String = "C:\Users\%USERNAME%\Documents\test.txt" 'Example file Process.Start("explorer.exe", "/select," & filePath) 'Starts explorer.exe and selects desired file
Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) & "\test.txt" 'Example file seems to work a little better than
"C:\Users\%USERNAME%\Documents\test.txt" ; += thanks. :)
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.