[RESOLVED] [2008] Highlight a file in explorer
Hi Guys,
Does anyone know how I could locate a particular file in windows explorer by highlighting it?
Example: in my app I have a list of files, when a user right clicks one of these files in the list they click an option named "locate file" and this then opens the directory that the file is stored in just in a normal windows explorer window. The particular file they clicked is then selected/highlighted in this directory (so it looks the same as it would if you had clicked the file once).
So just to be clear, I dont want to use an file browser window inside my program, I want the normal Windows Explorer.exe process to open the directory and select the file.
I can get my app to open explorer at the specified directory but I just cant find a way of highlighting the file, I've seen other programs that do this, Windows Media Player for example, but I dont know if its possible using vb.net
Can anyone give me any suggestions?
Cheers
Chris
Re: [2008] Highlight a file in explorer
Make your own explorer?
Can you tell me in general what it is you are aiming for, you are thinking towards a solution, but can you discribe the problem?
Re: [2008] Highlight a file in explorer
I dont really know how I can explain it any better...
Forget vb.net apps for a second, just imagine you are sat at your PC, you click the Start button and go to My Documents, then in the My Documents windows you click a file (once) and it turns the filename blue and highlights/selects it. I want to be able to do that from my program, not IN my program. I want the user to be able to click a button in my program and then it opens the folder in Windows Explorer, which is external to my program of course, and highlights a specific file.
Is that a bit clearer?
Re: [2008] Highlight a file in explorer
Re: [2008] Highlight a file in explorer
oo thanks that looks promising :) I did have a quick check on google but didnt find anything, probably cos I was thinking more of a specific .net command rather than just a switch on the explorer.exe file.
Thanks
Chris