32 lines
861 B
Batchfile
32 lines
861 B
Batchfile
|
|
pause "eDosStation to Sqlsrv7 "
|
||
|
|
|
||
|
|
|
||
|
|
set src="D:\l\src\cs2024\eDosStation\eDosStation\bin\Release"
|
||
|
|
set C="%cd:"=%\bin\release"
|
||
|
|
if /I %src%==%C% (echo "Path OK ") else (echo "Path issue !")
|
||
|
|
Pause was ok ?
|
||
|
|
|
||
|
|
set dst="\\sqlsrv7\c$\Soft\eDos2023"
|
||
|
|
|
||
|
|
::set zip="eDosStation.tar"
|
||
|
|
::tar -cf %zip% -C %src% --exclude *.zip *.*
|
||
|
|
|
||
|
|
set zip="eDosStation.zip"
|
||
|
|
"c:\program files\7-zip\7z.exe" a -r %zip% .\bin\release\*.*
|
||
|
|
|
||
|
|
xcopy %zip% %dst% /i /h /R /y
|
||
|
|
|
||
|
|
|
||
|
|
:: %src:"=% remove quotes
|
||
|
|
:: %src:"=%\*.*9 remove quotes and add \*.*
|
||
|
|
:: /i If destination does not exist and copying more than one file, assumes that destination must be a directory.
|
||
|
|
:: /h Copies hidden and system files also.
|
||
|
|
:: /r Overwrites read-only files
|
||
|
|
:: /y uppresses prompting to confirm you want to overwrite an existing destination file.
|
||
|
|
:: /s Copies directories and subdirectories except empty ones
|
||
|
|
|
||
|
|
pause
|
||
|
|
|
||
|
|
|
||
|
|
|