How to run batch file using powershell
10,399
You should be able to use just
C:\designer\5.7\bin\designer.bat -p C:\designer\5.7\bin\designer.prop
Your latter two examples should work as they are.
Author by
sharsour
Updated on July 29, 2022Comments
-
sharsour almost 2 years
I am trying to run one batch file using powershell. It required property file to start the APP as without it is failing.
Below are the commands which i have tried but dint get success.
cmd.exe /c ' C:\designer\5.7\bin\designer.bat -p C:\designer\5.7\bin\designer.prop
or
& "C:\designer\5.7\bin\designer.exe" "C:\designer\5.7\bin\designer.prop"
or
& "C:\designer\5.7\bin\designer.exe" C:\designer\5.7\bin\designer.prop
Could someone suggest more on it?