Hallo Leute,
ich habe ein Problem. Ich möchte eine Variable innerhalb eines CMD befehles einfügen.
Mein Quelltext:
Code
Global $shellcommand = 'C:\Temp\extractMHT.exe "C:\Temp\RFA\RFA" & $line & Chr(32) & "C:\Temp\unzip"'
Nun wird mir aber folgendes angezeigt wenn ich diesen String mit Shellexecute ausführe.
'C:\Temp\extractMHT.exe "C:\Temp\RFA\RFA\" & $line & Chr(32) & "C:\Temp\unzip"'
Ich habe dies mithilfe einer MSGBox anzeigen lassen.
Das Problem sind die beiden ' am anfang und am Ende. Wie kann ich jedoch die Variablen innerhalb auflösen lassen?
Wie kann ich diesen String mit Shellexecute ausführen?
Vielen Dank für eure Hilfe.