Show File in Explorer?
-
- Addict
- Posts: 1077
- Joined: Sun Jul 25, 2004 4:21 pm
- Location: USoA
Show File in Explorer?
I can open the Windows Explorer to the path I want but how to make it highlight an item in file list? That is the question. As an example if you search for a file using "Everything", right click an item and select [Open path] it will open the Windows Explorer with that item highlighted. How do they do that?
- - - - - - - - - - - - - - - -
Randy
I *never* claimed to be a programmer.
Randy
I *never* claimed to be a programmer.
Re: Show File in Explorer?
Code: Select all
file$="c:\windows\regedit.exe"
ShellExecute_(0,"open","explorer","/select,"+file$,GetPathPart(file$),#SW_SHOW)
-
- Addict
- Posts: 1077
- Joined: Sun Jul 25, 2004 4:21 pm
- Location: USoA
Re: Show File in Explorer?
That's fantastic. Thank you barryG! ! !BarryG wrote: Sat Sep 20, 2025 4:21 amCode: Select all
file$="c:\windows\regedit.exe" ShellExecute_(0,"open","explorer","/select,"+file$,GetPathPart(file$),#SW_SHOW)
- - - - - - - - - - - - - - - -
Randy
I *never* claimed to be a programmer.
Randy
I *never* claimed to be a programmer.
Re: Show File in Explorer?
Happy to help. 
