fix: open Dir

This commit is contained in:
2024-04-12 20:02:00 +08:00
parent b8c4e05a32
commit 1ab785fbbc
5 changed files with 5 additions and 5 deletions

View File

@ -258,7 +258,7 @@ foreach ($adapter in $adapterMemory) {
static Future openDir(path, {bool isFile = false}) async {
dPrint("SystemHelper.openDir path === $path");
await Process.run(
SystemHelper.powershellPath, ["explorer.exe", isFile ? "/select,$path" : "/select,\"\"$path\"\""]);
SystemHelper.powershellPath, ["explorer.exe", isFile ? "/select,$path" : "\"/select,\"$path\"\""]);
}
static String getHostsFilePath() {