Table of Contents

Method GenFilePathOnDesktop

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

GenFilePathOnDesktop(string, bool)

Generates a file path on the desktop for the specified file name.

public static string GenFilePathOnDesktop(string fileNameWithoutPath, bool uniqueName = false)

Parameters

fileNameWithoutPath string

The name of the file without the path.

uniqueName bool

A boolean value indicating whether to generate a unique file name if a file with the same name already exists. Optional. Default is false.

Returns

string

A string containing the full file path on the desktop.