@echo off
:: VARS SETTING
set _ProductName=cas
set _ProductVersion=0.7.5
set _ProductType=dev
set _ProductOwner=ysg
set _MasterSourceRootPath=E:
set _ProductDir=%_MasterSourceRootPath%\%_ProductName%
set _EnvironmentName=%_ProductName%.%_ProductVersion%.%_ProductType%.%_ProductOwner%
set _ProductVersionDir=%_ProductDir%\%_EnvironmentName%
set _DeploymentPackageName=%_EnvironmentName%.zip
set _DeploymentPackageFilePath=%_MasterSourceRootPath%\%_DeploymentPackageName%
::CREATE THE LOG DIR IT WOULD BE NICE TO JUST DELETE IT FROM TIME TO TIME ...
mkdir %_ProductVersionDir%\log\
::SET ERROR LOG FILES AND INSTALL LOG FILES WITH TIMESTAMPING ... SETT
set _ERRORLOG=%_ProductVersionDir%\sfw\cmd\zip\%_DeploymentPackageName%_%computerName%_%NICETIME%%username%.error.log
set _INSTALLLOG=%_ProductVersionDir%\sfw\cmd\zip\%_DeploymentPackageName%_%computerName%_%NICETIME%.%username%.install.log
cd %_ProductVersionDir%
echo delete the _DeploymentPackageFilePath %_DeploymentPackageFilePath%
del /q %_DeploymentPackageFilePath%
:: GET THE %NICETIME% VARIABLE IN THE YYYYMMDD_HHmmssmm format ...
call GetNiceTime_on_%COMPUTERNAME%.CMD
echo CHECK ONES MORE ALL THE VARIABLES :
ECHO =====================================================================¨
ECHO.
::ECHO ALL THE VARS STARTING WITH _
set _
:: WAIT FOR ONE SECOND
ping -n 3 127.0.0.1 >NUL
ECHO.
ECHO =====================================================================¨
ECHO CTRL + c , y TO ABOUT , PRESS ANYTHING ELSE TO PROCEED
PAUSE
cd %_ProductDir%
for /f %%i in ('type %_ProductVersionDir%\sfw\cmd\zip\FilesToInclude.%_EnvironmentName%.txt') do zip -v -9 %_DeploymentPackageName% %%i
:: zip [-options] [-b path] [-t mmddyyyy] [-n suffixes] [zipfile list] [-xi list]
:: -9 compress better
:: -ll CR LF to LF)
:: -v verbose operation/print version info
:: -i include only the following names
PAUSE
No comments:
Post a Comment
- the first minus - Comments have to be moderated because of the spammers
- the second minus - I am very lazy at moderating comments ... hardly find time ...
- the third minus - Short links are no good for security ...
- The REAL PLUS : Any critic and positive feedback is better than none, so your comments will be published sooner or later !!!!