xsM = String with a FullPath of a .File.

.i would like to load win.explorer with that.File.Selected=True .

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
commented: "just.because" :D -3

Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) & "\test.txt" 'Example file seems to work a little better than "C:\Users\%USERNAME%\Documents\test.txt" ; += thanks. :)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.