JCL Help:OpenFolder

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Opens a folder in Explorer.


Pascal

 function OpenFolder(const Path: string; Parent: THandle = 0; Explore: Boolean = False): Boolean;


Parameters

Parameters Description
Parent: THandle = 0 Handle of the window to serve as the parent of any dialogs displayed.
Folder Path of the folder to open. You can either specify a fully qualified path or a relative one, which will be relative to the current directory.


Return Value

If the function succeeds the result is True, otherwise it is False. You can call GetLastError to get more detailed information about the reason of failure.


Description

The OpenFolder function opens Explorer with the specified Folder as the root of the namespace (root of the lefthand treeview).


See Also

OpenSpecialFolder


About

Unit

JclShell


Donator

Marcel van Brakel


Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page