PostCustomCommandParameters scheinen bei %destinationpath% beim ersten Leerzeichen abgeschnitten zu werden

Anfragetyp:
BUG / NEUES FEATURE – Bug

MCEBuddy-Version und -Typ (32-Bit oder 64-Bit): – 64

Betriebssystem und -Typ (32-Bit oder 64-Bit): – 64

Zusammenfassung des Problems oder Vorschlags: Es scheint, als würde die Software den Befehl, der über PostCustomCommandParameters gesendet wird, beim ersten Leerzeichen in der Variable %destinationpath% abschneiden. Dies ist im folgenden Auszug aus dem Log zu sehen.

2019-03-17T04:16:37 MCEBuddy.Transcode.CustomCommand --> Custom command parameters read ->  
PostCustomCommandPath = c:\wmcscript\runshowremoversubdir.bat 
PostCustomCommandParameters = ""%destinationpath%"" 
PostCustomCommandHangPeriod = 0 
PostCustomCommandCritical = False 
PostCustomCommandUISession = False 
PostCustomCommandShowWindow = True 
PostCustomCommandExitCodeCheck = False
2019-03-17T04:16:37 MCEBuddy.Transcode.CustomCommand --> About to run custom command with parameters: 
PostCustomCommandPath = c:\wmcscript\runshowremoversubdir.bat 
PostCustomCommandParameters = ""P:\Recorded TV\Processed\TV\Protected\Rock Legends"" 
PostCustomCommandHangPeriod = 0 
PostCustomCommandCritical = False 
PostCustomCommandUISession = False 
PostCustomCommandShowWindow = True 
PostCustomCommandExitCodeCheck = False
2019-03-17T04:16:37 MCEBuddy.AppWrapper.Base --> Launching process c:\wmcscript\runshowremoversubdir.bat
2019-03-17T04:16:37 MCEBuddy.AppWrapper.Base --> Process arguments ""P:\Recorded TV\Processed\TV\Protected\Rock Legends""
2019-03-17T04:16:37 MCEBuddy.AppWrapper.Base --> UI Session Admin Process : False
2019-03-17T04:16:37 MCEBuddy.AppWrapper.Base --> Setting process priority to Idle
2019-03-17T04:16:37 MCEBuddy.AppWrapper.Base --> c:\wmcscript>echo on 
2019-03-17T04:16:37 MCEBuddy.AppWrapper.Base --> c:\wmcscript>C:\WMCScript\ReadWMCBackup.pl
...
2019-03-17T04:16:38 MCEBuddy.AppWrapper.Base --> c:\wmcscript>C:\WMCScript\ShowRemoverSubDir.pl ""P:\Recorded 
2019-03-17T04:16:38 MCEBuddy.AppWrapper.Base --> Name "main::nothing" used only once: possible typo at C:\WMCScript\ShowRemoverSubDir.pl line 88.

Schritte zur Reproduktion des Bugs: Verwenden Sie einen Post-Custom-Command mit einem destinationpath, der Leerzeichen enthält.

Screenshots: Ich habe ein Beispiel-Log angehängt.

Danke!

Rock Legends_AXSTV_2019_03_17_03_29_00.wtv-Move Protected TV-2019-03-17T04-15-24.7126063-04-00.log (1,1 MB)

Wie verwendet deine BAT-Datei die Variable? Hast du sie auch in der .bat-Datei in Anführungszeichen gesetzt?

Es sieht so aus, als würde sie ein Paar Anführungszeichen zu viel sehen. Es sieht so aus, als hättest du es im Eintrag „PostCustomCommandParameters“ richtig gemacht, daher frage ich mich, ob die BAT-Datei ein zusätzliches Paar hinzufügt.

Es sieht nach einem Problem mit der Anführungszeichen-Konfiguration aus. Versuche, ein Set Anführungszeichen weniger zu verwenden, wie @hobesman erwähnte, oder versuche, deine Anführungszeichen zu escapen \\\", wenn du sie an dein Skript übergeben willst. Es ist Windows/cmd.exe/Scripting, das die Anführungszeichen beim Navigieren durch das System unterschiedlich interpretiert.

Das hat funktioniert. Vielen Dank für den Rat. Ich weiß, dass ich beim Einrichten dieses Post-Custom-Commands (~2013) das zweite Anführungszeichen brauchte, damit das Skript funktioniert. Das Update, das ich im Dezember 2018 angewendet habe, muss das zweite Anführungszeichen überflüssig gemacht haben.

Nochmals vielen Dank!