Class WindowsOSHelper
- Namespace
- SunamoWinStd
- Assembly
- SunamoWinStd.dll
Helper class for Windows OS specific operations like finding files in user app data folders.
public class WindowsOSHelper
- Inheritance
-
WindowsOSHelper
- Inherited Members
- Extension Methods
Methods
FileIn(UserFoldersWin, string, string)
Finds a file in a user app data subfolder.
public static string? FileIn(UserFoldersWin userFoldersWin, string appName, string executableName)
Parameters
userFoldersWinUserFoldersWinThe user folder type (Local, Roaming, LocalLow).
appNamestringApplication subfolder name.
executableNamestringExecutable file name to find.
Returns
- string
Full path of the found file, or null.
FileIn(string, string)
Finds a file recursively in the specified folder.
public static string? FileIn(string folder, string executableName)
Parameters
Returns
- string
Full path of the found file, or null.
PathOfAppDataFolder(UserFoldersWin)
Gets the path of the specified AppData subfolder.
public static string PathOfAppDataFolder(UserFoldersWin userFoldersWin)
Parameters
userFoldersWinUserFoldersWinThe user folder type.
Returns
- string
Full path to the AppData subfolder.