I am using Web Deploy for publishing an ASP.NET MVCwebsite in Visual Studio 2010.
Is there any way to run a .bat file on server after this publish automatically?
Asked
Active
Viewed 2,492 times
7

Kris van der Mast
- 16,343
- 8
- 39
- 61

Jacob Jedryszek
- 6,365
- 10
- 34
- 39
1 Answers
2
See: Post Publish Events
You could create a Windows Service that runs on your IIS box and uses the FileSystemWatcher
to monitor changes to your web root path and when it detects a file change run a batch file.