FANDOM


backup.batEdit

mkdir Backup 2>nul
if not exist all.zip goto :eof
set datex=%date:/=-%
set timex=%time::=-%
set filename="Backup\%datex% %timex%.zip"
copy all.zip %filename%

zipall.batEdit

del all.zip

::One of these should work

::Use 7-Zip command-line version (via install or Chocolatey)
call 7za a all.zip -r .\ -xr!Backup -x!all.zip

::Use 7-Zip installed directly
"%ProgramFiles(x86)%\7-zip\7z.exe" a all.zip -r .\ -xr!Backup -x!all.zip

::Use pkzip
pkzip -add -excl=Backup\* -path -rec all

The above batch file could be modified to only invoke the version that's fined using the following technique: Determine if an exe or bat can be invoked

clean.batEdit

@echo off
rem call c14.bat
rem for /r . %%i in (*.sln) do devenv /clean debug "%%i"
rem for /r . %%i in (*.sln) do devenv /clean release "%%i"

del/f/s/q *.aps        2>nul
del/f/s/q *.bsc        2>nul
del/f/s/q *.exp        2>nul
del/f/s/q *.idb        2>nul
del/f/s/q *.ilk        2>nul
del/f/s/q *.lib        2>nul
del/f/s/q *.ncb        2>nul
del/f/s/q *.obj        2>nul
del/f/s/q *.opt        2>nul
del/f/s/q *.pch        2>nul
del/f/s/q *.pdb        2>nul
del/f/s/q *.plg        2>nul
del/f/s/q *.sbr        2>nul
del/f/s/q *.suo        2>nul
del/f/s/q *.sdf        2>nul

del/f/s/q /ah *.suo        2>nul

del/f/s/q BuildLog.htm    2>nul

for /f "delims=;" %%i in ('dir "TempPE" /s/b /ad')         do rmdir /s/q "%%i"
for /f "delims=;" %%i in ('dir "obj" /s/b /ad')            do rmdir /s/q "%%i"
for /f "delims=;" %%i in ('dir "_ReSharper*" /s/b /ad')    do rmdir /s/q "%%i"
for /f "delims=;" %%i in ('dir "TestResults*" /s/b /ad')   do rmdir /s/q "%%i"

all.batEdit

call clean
call zipall
call backup
pause

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.