This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
start:chromateccode [2017/11/27 15:42] andre |
start:chromateccode [2017/12/15 12:21] (current) andre |
||
|---|---|---|---|
| Line 81: | Line 81: | ||
| @echo Copying files for batch %batch_number% | @echo Copying files for batch %batch_number% | ||
| SETLOCAL enabledelayedexpansion | SETLOCAL enabledelayedexpansion | ||
| - | set /a counter=0 | + | set /a ptcounter=0 |
| FOR /F %%a in (Y:\Batches\%batch_number%.txt) DO ( | FOR /F %%a in (Y:\Batches\%batch_number%.txt) DO ( | ||
| - | set /a counter=!counter!+1 | + | set /a ptcounter=!ptcounter!+1 |
| - | @echo %%~na_!counter!%%xa | + | @echo %%~na_file_!ptcounter!%%~xa |
| - | copy "%%~a" "Y:\Orders\Heat_transfer\%batch_number% %year%-%month%-%day% %hour%-%min% %days%\%%~na_file_!counter!%%~xa" | + | copy "%%~a" "Y:\Orders\Heat_transfer\%batch_number% %year%-%month%-%day% %hour%-%min% %days%\%%~na_file_!ptcounter!%%~xa" |
| ) | ) | ||
| ENDLOCAL | ENDLOCAL | ||