Share via


ToolLocationHelper.GetPathToSystemFile(String) Method

Definition

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

public:
 static System::String ^ GetPathToSystemFile(System::String ^ fileName);
public static string GetPathToSystemFile (string fileName);
static member GetPathToSystemFile : string -> string
Public Shared Function GetPathToSystemFile (fileName As String) As String

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