sql server - Command line Script for cleaning VS project + backing up SQL + zipping? -


Does anyone have some kind of command line script that can do something like this:

Clean VS Project (Delete \ Bin Folder Content, etc.)
Backup SQL Server Database
All Files Zip

You have to plug in many features for your environment so that you can work from the best start. You can consider NANT (or ant on which it is based).

Here are reference docs for tasks that you will need to configure: *

* To back up SQL, you will need to run the Osql.exe command. Here are some other answers related to the issue:

Here is a build file outline:

   & Lt; / Target & gt; & Lt; Target name = "backup sql" & gt; & Lt; Exec program = "c: \ program files \ Microsoft SQL Server \ 80 \ device \ binn \ osql.exe" & gt; & Lt; Arg value = "-i" /> & Lt; / Executive & gt; & Lt; / Target & gt; & Lt; Target name = "zip files" & gt; & Lt; Zip zip file = "files.zip" & gt; & Lt; Fileset basedir = "filesToZip /" & gt; & Lt; Include name = "*. *" / & Gt; & Lt; / Fileset & gt; & Lt; / Zip> & Lt; / Target & gt; & Lt; Target name = "build" dependent = "clean, backup sql, zip files" /> & Lt; / Project & gt;  

Comments

Popular posts from this blog

c++ - Linux and clipboard -

Visual Studio 2005: How to speed up builds when a VSMDI is open? -

booting ubuntu from usb using virtualbox -