Here are the contents of 2 files. One is a .bat, one is a .txt.
--start BuildReleaseWebSite.bat (do not include this line)
@echo off
ECHO When/If prompted with the question:
ECHO .
ECHO Does ".........." specify a file name or directory name on the
target
ECHO (F = file, D = directory)?
ECHO _
ECHO You should answer with "D" for directory.
ECHO _
ECHO _
ECHO _
ECHO When/If prompted with the question:
ECHO _
ECHO Overwrite (...........)
ECHO (Yes/No/All)?
ECHO _
ECHO You should answer with "A" for "All"
ECHO _
@echo on
"C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\devenv.exe"
MyCompany.Applications.MyFirstApplication.sln /Rebuild Release
XCOPY .\Presentation.Web1\*.*
c:\wutemp\ReleaseBuild_Web_MyCompany_Applications_MyFirstApplication
/EXCLUDE:.\exclude.txt /e/s
copy this into "exclude.txt" and do not include this line
..pdb
Build_WebSite.bat
Build_WinForms.bat
exclude.txt
..sln
..vbproj
..csproj
alter the paths and filenames (for your .sln) as needed.
run the .bat file