Class FileExplorerUtilities
Provides utility functions regarding the Windows file explorer.
public static class FileExplorerUtilities
- Inheritance
-
FileExplorerUtilities
- Inherited Members
Methods
OpenNewDefaultExplorerProcess()
Opens the file explorer at the default directory.
public static Process OpenNewDefaultExplorerProcess()
Returns
SelectFileInExplorer(string)
Opens the file explorer at the directory at which a specified file is contained, while also selecting it.
public static Process SelectFileInExplorer(string path)
Parameters
pathstringThe path of the file to open in the file explorer.
Returns
StartCustomExplorerAtRoot(string)
Opens the default set file explorer at the directory that is specified.
public static Process StartCustomExplorerAtRoot(string root)
Parameters
rootstringThe root folder to open the file explorer at.
Returns
Remarks
This method uses the start command to open the file explorer. This is used by some third-party file explorers to open their custom explorer instead of the Windows one, for example File Pilot.
StartExplorerAtRoot(string)
Opens the file explorer at the directory that is specified.
public static Process StartExplorerAtRoot(string root)
Parameters
rootstringThe root folder to open the file explorer at.