mirror of
https://github.com/PhoenixPE/PhoenixPE.git
synced 2025-09-16 18:18:04 +02:00
Fix Space in path causes PhoenixAPI-DriveGetType to fail (Issue #107)
This commit is contained in:
@@ -32,8 +32,8 @@
|
|||||||
Title=PhoenixPE API
|
Title=PhoenixPE API
|
||||||
Author=Homes32
|
Author=Homes32
|
||||||
Description=PhoenixPE scripting support library.
|
Description=PhoenixPE scripting support library.
|
||||||
Version=1.10.1.0
|
Version=1.10.2.0
|
||||||
Date=2024-08-11
|
Date=2024-09-09
|
||||||
Level=0
|
Level=0
|
||||||
Selected=None
|
Selected=None
|
||||||
|
|
||||||
@@ -769,7 +769,7 @@ If,%DriveLetter%,Equal,"",Halt,"Syntax Error: Drive letter was not specified."
|
|||||||
|
|
||||||
StrFormat,EndTrim,%DriveLetter%,"\",%DriveLetter%
|
StrFormat,EndTrim,%DriveLetter%,"\",%DriveLetter%
|
||||||
|
|
||||||
ShellExecute,Hide,"%Tools%\%HostArch%\AutoIt3.exe","%Tools%\a3x\PhoenixAPI-DriveGetType.a3x #$q%DriveLetter%#$q #$q%ProjectTemp%\PhoenixAPI-DriveGetType.ini#$q"
|
ShellExecute,Hide,"%Tools%\%HostArch%\AutoIt3.exe","#$q%Tools%\a3x\PhoenixAPI-DriveGetType.a3x#$q #$q%DriveLetter%#$q #$q%ProjectTemp%\PhoenixAPI-DriveGetType.ini#$q"
|
||||||
|
|
||||||
If,Not,%ExitCode%,Equal,0,Halt,"DriveGetType Error: Unable get drive type for [%DriveLetter%]. The command returned [%ExitCode%]."
|
If,Not,%ExitCode%,Equal,0,Halt,"DriveGetType Error: Unable get drive type for [%DriveLetter%]. The command returned [%ExitCode%]."
|
||||||
|
|
||||||
@@ -888,7 +888,7 @@ If,%Path%,Equal,"",Halt,"Syntax Error: Path was not specified."
|
|||||||
If,%SearchFilter%,Equal,"",Halt,"Syntax Error: Search filter was not specified."
|
If,%SearchFilter%,Equal,"",Halt,"Syntax Error: Search filter was not specified."
|
||||||
|
|
||||||
// Recurse the path looking for the specified file
|
// Recurse the path looking for the specified file
|
||||||
ShellExecute,Hide,"%Tools%\%HostArch%\AutoIt3.exe","%Tools%\a3x\PhoenixAPI-FileSearch.a3x #$q%Path%#$q #$q%SearchFilter%#$q #$q%ProjectTemp%\PhoenixAPI-FileSearch.ini#$q"
|
ShellExecute,Hide,"%Tools%\%HostArch%\AutoIt3.exe","#$q%Tools%\a3x\PhoenixAPI-FileSearch.a3x#$q #$q%Path%#$q #$q%SearchFilter%#$q #$q%ProjectTemp%\PhoenixAPI-FileSearch.ini#$q"
|
||||||
|
|
||||||
// Return the result as #r
|
// Return the result as #r
|
||||||
IniRead,"%ProjectTemp%\PhoenixAPI-FileSearch.ini","String","List",%SearchResult%,"Default="
|
IniRead,"%ProjectTemp%\PhoenixAPI-FileSearch.ini","String","List",%SearchResult%,"Default="
|
||||||
|
Reference in New Issue
Block a user