Henry Olive 5 Posted January 27, 2021 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
Der schöne Günther 316 Posted January 27, 2021 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 1 Share this post Link to post