GetIDByPath¶
Returns the identifier (ID) for the directory of the passed directory path.
Syntax
GetIDByPath (Path : <String>): <Integer>
Parameters
- Path
The path of the directory to get the identifier (ID) for.
Return Value
The ID for the directory of the passed directory path.
Example
$SOS.GetIDByPath("C:\Windows\system32")
SOS.GetIDByPath "C:\Windows\system32"
Queries the identifier (ID) for the path “C:Windowssystem32”.