Hallo ich habe da eine Frage bzw ein Command in einem Paket der nicht funktioniert.
Und zwar möchte ich folgenden Command ausführen.
Set CurrentAction=Dism /online /import-defaultappassociations:"%Src%\Source\CustomFileAssoc.xml"
CallHidden cmd.exe /c "powershell.exe -executionpolicy unrestricted -command "&{%CurrentAction%}""
Dieser läuft aber nicht.
Hat hier einer eine Lösung ob ich vielleicht irgendwo ein " zuviel oder zuwenig habe??
Powershell Command mit cmd.exe ausführen
Re: Powershell Command mit cmd.exe ausführen
Fehler gefunden.
Set CurrentAction=Dism /online /import-defaultappassociations:'%Src%\Source\CustomFileAssoc.xml'
Statt " ein ' benutzt
Kann zu
Set CurrentAction=Dism /online /import-defaultappassociations:'%Src%\Source\CustomFileAssoc.xml'
Statt " ein ' benutzt
Kann zu
Who is online
Users browsing this forum: No registered users and 6 guests