ToolLocationHelper.GetPathToSystemFile(String) Method

Definition

Get a fully qualified path to a file in the system directory (i.e. %SystemRoot%\System32)

C#
public static string GetPathToSystemFile(string fileName);

Parameters

fileName
String

File name to locate in the system directory

Returns

Path string.

Remarks

This API builds the full path plus filename for a file in the System folder. It doesn't check for the existence of the file prior to returning.

Applies to

Proizvod Verzije
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1