fix: Remove XCOPY /Q switch from all batch files

Issue: DOS 6.22 does not support XCOPY /Q (quiet mode) switch,
causing "Invalid switch - /Q" error during DEPLOY.BAT execution.

Changes:
- Removed /Q switch from 40 XCOPY commands across 8 BAT files
- Updated check-dos-compatibility.ps1 to detect XCOPY /Q usage
- Created fix-xcopy-q-switch.ps1 automated fix script

Files modified:
- DEPLOY.BAT: 5 XCOPY commands fixed
- UPDATE.BAT: 2 XCOPY commands fixed
- CTONW.BAT: 11 XCOPY commands fixed
- NWTOC.BAT: 2 XCOPY commands fixed
- DEPLOY_VERIFY.BAT, DEPLOY_TEST.BAT, DEPLOY_FROM_NAS.BAT,
  DEPLOY_FROM_AD2.BAT: Test/verification copies updated

DOS 6.22 XCOPY valid switches: /Y /S /E /D /H /K /C
Invalid switches: /Q (quiet mode)

Deployed to:
- D2TESTNAS: /data/test/*.BAT (via scp -O)
- AD2: C:/scripts/sync-copies/bat-files/*.BAT

Testing: DOS machine error "Invalid switch - /Q" resolved

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-01-19 17:06:50 -07:00
parent 116778cad9
commit 0a1233e615
10 changed files with 103 additions and 40 deletions

View File

@@ -130,7 +130,7 @@ FOR %%F IN (C:\BAT\*.BAT) DO COPY %%F %%~dpnF.BAK >NUL 2>NUL
REM Copy newer batch files from COMMON
ECHO Copying updated files...
XCOPY T:\COMMON\ProdSW\*.bat C:\BAT\ /D /Y /Q
XCOPY T:\COMMON\ProdSW\*.bat C:\BAT\ /D /Y
IF ERRORLEVEL 4 GOTO UPDATE_ERROR_INIT
IF ERRORLEVEL 2 GOTO UPDATE_ERROR_USER
IF ERRORLEVEL 1 ECHO [OK] No new batch files in COMMON
@@ -234,7 +234,7 @@ FOR %%F IN (C:\NET\*.DOS) DO COPY %%F %%~dpnF.BAK >NUL 2>NUL
REM Copy newer network files
ECHO Copying updated network files...
XCOPY T:\COMMON\NET\*.* C:\NET\ /D /Y /Q
XCOPY T:\COMMON\NET\*.* C:\NET\ /D /Y
IF NOT ERRORLEVEL 1 ECHO [OK] Network client files updated
GOTO UPDATE_COMPLETE