Method OpenFolderInExplorer
OpenFolderInExplorer(string)
Opens the specified folder in the system's default file explorer application.
public static bool OpenFolderInExplorer(string path)
Parameters
pathstringThe full path of the folder to open. Must refer to an existing directory.
Returns
- bool
true if the folder was successfully opened in the file explorer; otherwise, false.
Remarks
This method supports Windows, macOS, and Linux platforms. On unsupported platforms or if an error occurs, the method returns false. No exception is thrown if the operation fails.