Click here to Skip to main content
15,896,359 members
Articles / Database Development / SQL Server

SQL XML Documentation

Rate me:
Please Sign up or sign in to vote.
4.59/5 (12 votes)
29 Feb 2008CPOL5 min read 113.6K   1.4K   75  
How to create and compile SQL XML Documentation comments
@echo off

:: Get current directory.
for /f "tokens=*" %%a in ('cd') DO SET DIR0=%%a

:: Set destination file, source list and exclusion list.
SET fil=JocysComSqlScriptsGenerator
SET dst="%DIR0%\%fil%.zip"
SET lst="%DIR0%\%fil%-Include.txt"
SET exc="%DIR0%\%fil%-Exclude.txt"
SET arc=%ProgramFiles%\WinRAR\winrar.exe
echo arc
SET zip="%arc%" a -ed -r -afzip -x@%exc%

echo DST=%dst%
echo LST=%lst%
echo EXC=%exc%
echo ZIP=%zip%

:: ---------------------------------------------------------------------------
:: Go to current folder
cd %DIR0%
echo --- Delete file if file with same name already exist.
IF EXIST %dst% del %dst%
echo --- Pack 'ReadMe.txt' file.
IF EXIST "ReadMe.txt" %zip% %dst% "ReadMe.txt"
:: Go back to WebApp folder.
cd "..\.."
cd
echo --- Pack all files in the list.
%zip% %dst% @%lst%
:: Go back to home/current folder.
cd %DIR0%

:end
pause

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior)
United Kingdom United Kingdom
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions