سؤال

I am trying to log an output from MSDeploy command line script to a log file.

:: SYNC FILES--
"C:\Program Files\IIS\Microsoft Web Deploy V2\msdeploy.exe" -Verb:sync ^
-Source:AppHostConfig=Website1,ComputerName=Server1 ^
-Dest:AppHostConfig=Website1,ComputerName=Server2 ^
-Skip:SkipAction='Update',objectName=filePath,absolutePath=.*web.config$ ^
-Skip:SkipAction='Update',ObjectName=contentPath,absolutePath=c:\\inetpub\\apppools ^
-Skip:objectName=Binding ^
-EnableRule=DoNotDeleteRule > msdeploy.log
TIMEOUT /T 100

"> msdeploy.log" shows up as "1> msdeploy.log" and becomes unable to log anything.

Any help will be appreciated ?

هل كانت مفيدة؟

المحلول

The redirection with > is the short form of 1>, to redirect stream1.

This is not your problem.

But it could be a directory problem, so the file is created but not in the expected one.

This happens when the working directory is not the same as the directory where the batch resides.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top