Page 1 of 1
Show File in Explorer?
Posted: Sat Sep 20, 2025 3:24 am
by Randy Walker
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?
Re: Show File in Explorer?
Posted: Sat Sep 20, 2025 4:21 am
by BarryG
Code: Select all
file$="c:\windows\regedit.exe"
ShellExecute_(0,"open","explorer","/select,"+file$,GetPathPart(file$),#SW_SHOW)
Re: Show File in Explorer?
Posted: Sat Sep 20, 2025 8:43 pm
by Randy Walker
BarryG wrote: Sat Sep 20, 2025 4:21 am
Code: Select all
file$="c:\windows\regedit.exe"
ShellExecute_(0,"open","explorer","/select,"+file$,GetPathPart(file$),#SW_SHOW)
That's fantastic. Thank you barryG! ! !
Re: Show File in Explorer?
Posted: Sun Sep 21, 2025 2:08 am
by BarryG
Happy to help.
