2

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?

1

2 Answers 2

5

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.

Sign up to request clarification or add additional context in comments.

Comments

0

x.vbs file content following:

Dim oShell
Set oShell = WScript.CreateObject ("WScript.Shell")
oShell.run "cmd /K CD **path** & **x.bat** **parameter**"
Set oShell = Nothing

powershell script following :

Start-Process x.vbs

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.