自定义命令参数引号不起作用

沒有任何變化,參數正如自訂命令中所指定的那樣傳遞。

請試著移除命令參數周圍的額外引號,它應該像這樣:

PostCustomCommandPath=C:\Resources\TvRecordingMver.exe
PostCustomCommandParameters=source=“%convertedfile%” orig=“%sourcefile%” delete=true

每個程式處理輸入參數和引號的方式都不同,有些無法處理整體被引號包住的參數,有些則無法處理巢狀引號。

例如,在使用命令列時,Windows 總是將引號成對連接,並在下一個空格處拆分參數,因此當你使用以下命令列參數時:

“source=”%convertedfile%" orig=“%sourcefile%” delete=true"

Windows 命令列會將其轉換為以下參數:

"source="C:\Users\Public\Videos\Continuum\Season
01\S01E09-Family
Time.mp4" orig="C:\Users\ramit\Desktop\Continuum
-
S01E9
-
2015-02-25.ts" delete=true"

然而,當你使用(沒有開頭和結尾的引號):

source=“%convertedfile%” orig=“%sourcefile%” delete=true

Windows 命令列會將其轉換為:

source
"C:\Users\Public\Videos\Continuum\Season 01\S01E09-Family Time.mp4"
orig
"C:\Users\ramit\Desktop\Continuum - S01E9 - 2015-02-25.ts"
delete
true