Lazarus: Open Folder in Explorer
Question by Guest | Last update on 2022-07-27 | Created on 2014-07-17
I would like to open a directory in the default Explorer respectively the file browser of the operating system using Lazarus. That is, for example opening the folder "C:\Example" in the Windows Explorer.
Is this possible independent from the operating system? When using Delphi, I have always worked with Windows-API commands. How is it possible in Lazarus?
Related Topics
Rename File to its Folder Name
Tutorial | 0 Comments
Lazarus: Open File or Document platform-independent
Tip | 0 Comments
Windows: Extract ZIP Archive without additional Software
Tip | 0 Comments
CSS Hacks for the Internet Explorer
Tip | 1 Comment
Windows: Useful Keyboard Shortcuts
Info | 0 Comments
VirtualBox: Change Date and Time
Tutorial | 10 Comments
Important Note
Please note: The contributions published on askingbox.com are contributions of users and should not substitute professional advice. They are not verified by independents and do not necessarily reflect the opinion of askingbox.com. Learn more.
Participate
Ask your own question or write your own article on askingbox.com. That’s how it’s done.
You can just use the function OpenDocument from the Unit LCLIntf (do not forget to add LCLIntf to the USES-Section):
OpenDocument is able to open arbitrary files or directories independent from the operating system.
Internally, the specific functions necessary for the corresponding operating system are called by this function, but you do not have to care about that.
Addition: See this question for a Delphi solution.
Last update on 2022-07-27 | Created on 2014-07-17