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:
@@ -26,6 +26,7 @@ $IncompatiblePatterns = @(
|
||||
@{Pattern='&&'; Description='&& operator - NOT in DOS 6.22'},
|
||||
@{Pattern='\|\|'; Description='|| operator - NOT in DOS 6.22'},
|
||||
@{Pattern='\\NUL(?!\s|$)'; Description='\NUL as filename - INVALID (use \*.* for directory test)'},
|
||||
@{Pattern='XCOPY.*\/Q'; Description='XCOPY /Q (quiet mode) - NOT in DOS 6.22'},
|
||||
@{Pattern='CHOICE\s+/[A-Z]'; Description='CHOICE with options - Check if CHOICE.COM available'},
|
||||
@{Pattern='START\s+'; Description='START command - NOT in DOS 6.22'}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user