Program helper for search dir like C:\Program Files or C:\Program Files(x86)
ProgramPathSearchTool
00 Remarks
Works on windows, have not test on Linux/Mac yet.
01 Syntax
Microsoft.VisualBasic.ApplicationServices.ProgramPathSearchTool
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| Which | 1 | linux which liked file search tool |
| FindExecutableOnWindows | 1 | 在 Windows 系统上查找可执行文件。 |
| GetPathDirectories | 1 | 获取 PATH 环境变量中的目录列表。 |
| GetPathExtensions | 1 | 获取 PATHEXT 环境变量中的可执行文件扩展名列表。 |
| IsValidWindowsExecutable | 1 | 检查文件是否具有有效的 Windows 可执行扩展名。 |
| GetShortPathName | 1 | P/Invoke 声明,用于获取文件的短路径名 (8.3 格式)。 |
| ToShortPathName | 1 | 将长路径名转换为 Windows 短路径名。 |
| FindExecutableOnUnix | 1 | 在 Unix-like 系统上通过调用 'which' 命令来查找可执行文件。 |
03 Members
Which(
String, IEnumerable(Of String))linux which liked file search tool
Parameters
| Name | Type | Description |
|---|---|---|
name | String | - |
FindExecutableOnWindows(
String)在 Windows 系统上查找可执行文件。
GetPathDirectories
获取 PATH 环境变量中的目录列表。
GetPathExtensions
获取 PATHEXT 环境变量中的可执行文件扩展名列表。
IsValidWindowsExecutable(
String)检查文件是否具有有效的 Windows 可执行扩展名。
GetShortPathName(
String, StringBuilder, Int32)P/Invoke 声明,用于获取文件的短路径名 (8.3 格式)。
ToShortPathName(
String)将长路径名转换为 Windows 短路径名。
FindExecutableOnUnix(
String)在 Unix-like 系统上通过调用 'which' 命令来查找可执行文件。