fix(dataforth-dos): DOS 6.22 batch file improvements and sync fix
NWTOC.BAT v3.5: - Switch from XCOPY to COPY (more reliable in DOS 6.22) - Remove all >NUL redirects that cause issues - Add IF NOT EXIST checks before MD to avoid errors - Add 8 ATE data folder copies (5BDATA, 7BDATA, 8BDATA, DSCDATA, HVDATA, PWRDATA, RMSDATA, SCTDATA) - Remove machine-specific section (no longer needed) - Remove MACHINE variable requirement DEPLOY.BAT v2.4: - Switch all XCOPY to COPY for DOS 6.22 compatibility - Simplify output messages Also fixed AD2->NAS sync issue: - Ate/ProdSW folder was not being synced to NAS - DOS machines were getting outdated DSCDATA files (Dec 2025 vs Jan 2026) - Updated Sync-FromNAS.ps1 on AD2 to include Ate/ProdSW folder - Manually synced correct files to NAS (DSCMAIN4.DAT 65508 bytes) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
@ECHO OFF
|
||||
REM One-time deployment script for DOS Update System
|
||||
REM Usage: T:\COMMON\ProdSW\DEPLOY.BAT machine-name
|
||||
REM Version: 2.3 - Removed 2>NUL (DOS 6.22 only supports >NUL)
|
||||
REM Last modified: 2026-01-20
|
||||
REM Version: 2.4 - Use COPY instead of XCOPY (DOS 6.22 compatibility)
|
||||
REM Last modified: 2026-01-21
|
||||
|
||||
CLS
|
||||
|
||||
@@ -27,13 +27,13 @@ MD C:\BAT >NUL
|
||||
MD T:\%MACHINE% >NUL
|
||||
|
||||
ECHO [1/2] Copying batch files to C:\BAT...
|
||||
XCOPY T:\COMMON\ProdSW\NWTOC.BAT C:\BAT /Y >NUL
|
||||
XCOPY T:\COMMON\ProdSW\CTONW.BAT C:\BAT /Y >NUL
|
||||
XCOPY T:\COMMON\ProdSW\UPDATE.BAT C:\BAT /Y >NUL
|
||||
XCOPY T:\COMMON\ProdSW\CHECKUPD.BAT C:\BAT /Y >NUL
|
||||
XCOPY T:\COMMON\ProdSW\STAGE.BAT C:\BAT /Y >NUL
|
||||
XCOPY T:\COMMON\ProdSW\REBOOT.BAT C:\BAT /Y >NUL
|
||||
ECHO [OK] Batch files installed
|
||||
COPY T:\COMMON\ProdSW\NWTOC.BAT C:\BAT >NUL
|
||||
COPY T:\COMMON\ProdSW\CTONW.BAT C:\BAT >NUL
|
||||
COPY T:\COMMON\ProdSW\UPDATE.BAT C:\BAT >NUL
|
||||
COPY T:\COMMON\ProdSW\CHECKUPD.BAT C:\BAT >NUL
|
||||
COPY T:\COMMON\ProdSW\STAGE.BAT C:\BAT >NUL
|
||||
COPY T:\COMMON\ProdSW\REBOOT.BAT C:\BAT >NUL
|
||||
ECHO Batch files installed
|
||||
ECHO.
|
||||
|
||||
ECHO [2/2] Installing AUTOEXEC.BAT...
|
||||
@@ -63,7 +63,7 @@ ECHO ECHO System Ready >> C:\AUTOEXEC.BAT
|
||||
ECHO ECHO. >> C:\AUTOEXEC.BAT
|
||||
ECHO CD \ATE >> C:\AUTOEXEC.BAT
|
||||
ECHO menux >> C:\AUTOEXEC.BAT
|
||||
ECHO [OK] AUTOEXEC.BAT installed with MACHINE=%MACHINE%
|
||||
ECHO AUTOEXEC.BAT installed with MACHINE=%MACHINE%
|
||||
ECHO.
|
||||
|
||||
ECHO ==============================================================
|
||||
|
||||
Reference in New Issue
Block a user