Shoutbox

[?] Open file location - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: [?] Open file location (/showthread.php?tid=76677)

[?] Open file location by Matti on 08-10-2007 at 08:48 AM

Hi again! :D

Today I'm looking for a way to do what Explorer's right-click command "Open file location" does for search results. If you're searching for a file, you can right-click a result and choose "Open file location". This will open the parent folder and selects the file in the folder. That's exactly what I want for my script now...

So, is there any way I can do this using the Win32 API?

Thanks in advance! :)

P.S.: I don't know if this feature is Vista-only, if someone can try this out on XP maybe?


RE: [?] Open file location by toddy on 08-10-2007 at 09:42 AM

quote:
Originally posted by Mattike
P.S.: I don't know if this feature is Vista-only, if someone can try this out on XP maybe?

works on xp too
RE: [?] Open file location by GNSPS on 08-10-2007 at 01:32 PM

You can code an executable that will add the function you want to the right-click menu just like the one CookieRevised made but implementing the function you want.


RE: [?] Open file location by Eljay on 08-10-2007 at 01:39 PM

quote:
To view the C:\WINDOWS folder and select CALC.EXE, use the following syntax:
explorer /select,c:\windows\calc.exe
Source: Command-Line Switches for Windows Explorer
RE: [?] Open file location by Matti on 08-10-2007 at 02:18 PM

Thank you Eljay! :D