Table of Contents

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

userFoldersWin UserFoldersWin

The user folder type (Local, Roaming, LocalLow).

appName string

Application subfolder name.

executableName string

Executable 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

folder string

Folder to search in.

executableName string

Executable file name to find.

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

userFoldersWin UserFoldersWin

The user folder type.

Returns

string

Full path to the AppData subfolder.