From 08a01d1d544f4ea4f74df2ec33f73486c13ed2aa Mon Sep 17 00:00:00 2001 From: Homes32 Date: Thu, 12 Sep 2024 18:52:35 -0500 Subject: [PATCH] Fix Space in path causes PhoenixAPI-DriveGetType to fail (Issue #107) --- Projects/PhoenixPE/PhoenixAPI.script | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Projects/PhoenixPE/PhoenixAPI.script b/Projects/PhoenixPE/PhoenixAPI.script index a1b6a9b..a027651 100644 --- a/Projects/PhoenixPE/PhoenixAPI.script +++ b/Projects/PhoenixPE/PhoenixAPI.script @@ -32,8 +32,8 @@ Title=PhoenixPE API Author=Homes32 Description=PhoenixPE scripting support library. -Version=1.10.1.0 -Date=2024-08-11 +Version=1.10.2.0 +Date=2024-09-09 Level=0 Selected=None @@ -769,7 +769,7 @@ If,%DriveLetter%,Equal,"",Halt,"Syntax Error: Drive letter was not specified." 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%]." @@ -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." // 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 IniRead,"%ProjectTemp%\PhoenixAPI-FileSearch.ini","String","List",%SearchResult%,"Default="