Quantcast
Channel: Web Deployment Tool (MS Deploy)
Viewing all articles
Browse latest Browse all 663

runCommand with parameters

$
0
0

Hello,

I have a cmd file run.cmd which takes in 1 parameter: "c:\program files\list".  Thus, if executed from a command window, it would look like this:  > run.cmd "c:\program files\list"

How do I do the same execution through msdeploy in the runCommand command?  For example, I've tried this, but it did not work:

"%ProgramFiles%\IIS\Microsoft Web Deploy\msdeploy.exe" -verb:sync -source:package=mypackage.zip -dest:contentpath=blah -postSync:runCommand="C:\Program Files\test\run.cmd 'c:\program files\list' "

I don't know how to wrap the runCommand if the cmd command has parameters.

Thanks in advance,

Adriana.


Viewing all articles
Browse latest Browse all 663

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>