ToolLocationHelper.GetPathToSystemFile(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.