1.Create a folder named:DNN under disc E,look like E:\DNN, and create sub-folders under DNN folder,they are Dotnetnuke folder--which is source code folder and Deploy folder which has files for uploading to server.
2. Copy Exclude.txt file to DNN folder,the Exclude file's content as below:
\images\Development\
\test\
\todo\
\deletefolder\
\DevOnly\
\Documentation\
.build
.config
.csproj
.vbproj
.webinfo
.sln
.suo
.cs
.vb
.resx
.txt
.doc
.bat
.rsp
3. in Command prompt,type the following command:
E:\DNN>XCOPY "E:\DNN\DotNetNuke" E:\DNN\Deploy /D /E /R /K /H /I /Y /W /EXCLUDE:Exclude.txt
4.If you have better way,pls post here,thx
Reference to:
1.Boy119's blog http://www.cnblogs.com/boy119/archive/2005/02/11/103773.html
2.asp.net forum's link