Jump to content
Henry Olive

Open File Location

Recommended Posts

My table's FILEPATH.Value:='\\MySRV\MyFiles\Oraxxo.Txt';

I want to open above file location in windows explorer

I know how to open (run) the file, i just need source location in windows explorer
Thank You

Share this post


Link to post

TPath.GetDirectoryName(..) from System.IoUtils will report "\\MySrv\MyFiles" for your file path.

 

If I understood correctly, you want to open Windows explorer in the directory that contains your file. There is an even better way: Open Windows explorer in that directory, and already select that file.

Here is how:

https://stackoverflow.com/q/15300999/2298252

  • 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

×