pause "eDosStation to Sqlsrv7 " set src="D:\l\src\cs2025\eDosStation\eDosStation\bin\Release" set C="%cd:"=%\eDosStation\bin\release" if /I %src%==%C% (echo "Path OK ") else (echo "Path issue !") Pause was ok ? set dst="\\sqlsrv7\c$\Soft\eDos2026" ::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% .\edosstation\bin\release\*.* xcopy %zip% %dst% /i /h /R /y set src="D:\l\src\cs2025\eDosStation\eDosLocal" xcopy "%src:"=%\UpdateLocal.sql" %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