Jump to content
RussellW

Open folder in Explorer/Finder

Recommended Posts

Is there a way to open a folder cross platform (a supra ShellExecute thing) - mainly Win and MacOS - or is a load of IFDEFs needed? I've hunted around and can't see one, but thought I'd check

Share this post


Link to post

The TOSDevice record in this unit:

 

https://github.com/DelphiWorlds/KastriFree/blob/master/Core/DW.OSDevice.pas

Has a ShowFilesInFolder method, which "re-routes" to the respective platforms, namely macOS and Windows.


For macOS:

 

https://github.com/DelphiWorlds/KastriFree/blob/master/Core/DW.OSDevice.Mac.pas

For Windows:

 

https://github.com/DelphiWorlds/KastriFree/blob/master/Core/DW.OSDevice.Win.pas

 

  • Like 1

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×