2010-10-19 15 views

Répondre

7

Essayez l'aide de msdeploy.exe.

msdeploy.exe -help -postSync

ou http://technet.microsoft.com/en-us/library/ee619740(WS.10).aspx

msdeploy -verb:sync -source:contentPath="C:\Test1" 
    -dest:contentPath="C:\Test2" -preSync:runcommand="Appcmd stop sites 
    MyWebSite" -postSync:runcommand="Appcmd start sites MyWebSite" 

msdeploy -verb:sync -source:contentPath="C:\Test1" 
    -dest:contentPath="C:\Test2" -preSync:runcommand="c:\MyBatchFile.bat" 

msdeploy -verb:sync -source:contentPath="C:\Test1" 
    -dest:contentPath="C:\Test2" -postSync:runcommand="c:\MyBatchFile.bat" 
Questions connexes