How to run a .bat file on a server after deploying web publishing

I am using Web Deploy to publish ASP.NET MVCwebsite in Visual Studio 2010.
Is there a way to run the .bat file on the server after automatic publishing?

+6
source share
1 answer

See: Post Publications

You can create a Windows Service that runs in your IIS box and uses FileSystemWatcher to track changes in the root path of your website and detect a file change command file .

+2
source

Source: https://habr.com/ru/post/924165/


All Articles