feat(dataforth-dos): Add DOS 6.22 Coding Agent and fix all batch files
DOS 6.22 Coding Agent (.claude/agents/dos-coding.md): - 18 documented compatibility rules - Validation checklist for all DOS batch files - Known working constructs reference - Error message troubleshooting guide Batch file fixes for DOS 6.22 compatibility: - CTONW.BAT v3.2: Removed %DATE%/%TIME%, square brackets - ATESYNC.BAT v1.1: Removed square brackets, ERRORLEVEL checks - CHECKUPD.BAT v1.4: Removed CALL :label subroutines, square brackets - UPDATE.BAT v2.4: Removed square brackets, fixed NUL directory checks - DOSTEST.BAT v1.2: Removed 2>NUL, square brackets, NUL checks Key DOS 6.22 incompatibilities fixed: - CALL :label (Windows NT+ only) - %DATE% and %TIME% variables (don't exist) - Square brackets in ECHO (cause errors) - 2>NUL stderr redirect (not supported) - IF NOT EXIST path\NUL (unreliable) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
@ECHO OFF
|
||||
REM ATESYNC.BAT - ATE Sync Orchestrator (ARCHBAT equivalent)
|
||||
REM Version: 1.0
|
||||
REM Version: 1.1 - DOS 6.22 compatible
|
||||
REM Last modified: 2026-01-21
|
||||
REM
|
||||
REM Called from AUTOEXEC.BAT after network is up
|
||||
@@ -25,18 +25,13 @@ ECHO ************************************************************
|
||||
ECHO.
|
||||
|
||||
REM Step 1: Upload test results FIRST (before downloading updates)
|
||||
REM This ensures local results are preserved before any updates
|
||||
ECHO [UPLOAD] Sending test results to network...
|
||||
ECHO Sending test results to network...
|
||||
CALL CTONW.BAT
|
||||
IF ERRORLEVEL 1 GOTO UPLOAD_ERROR
|
||||
ECHO [UPLOAD] Complete
|
||||
ECHO.
|
||||
|
||||
REM Step 2: Download software updates
|
||||
ECHO [DOWNLOAD] Getting updates from network...
|
||||
ECHO Getting updates from network...
|
||||
CALL NWTOC.BAT
|
||||
IF ERRORLEVEL 1 GOTO DOWNLOAD_ERROR
|
||||
ECHO [DOWNLOAD] Complete
|
||||
ECHO.
|
||||
|
||||
ECHO ************************************************************
|
||||
@@ -46,7 +41,7 @@ ECHO.
|
||||
GOTO END
|
||||
|
||||
:CREATE_MACHINE
|
||||
ECHO [INFO] Creating machine folder T:\%MACHINE%
|
||||
ECHO Creating machine folder T:\%MACHINE%
|
||||
MD T:\%MACHINE%
|
||||
IF NOT EXIST T:\%MACHINE%\*.* GOTO MACHINE_ERROR
|
||||
MD T:\%MACHINE%\LOGS
|
||||
@@ -60,13 +55,13 @@ MD T:\%MACHINE%\LOGS\SCTLOG
|
||||
MD T:\%MACHINE%\LOGS\VASLOG
|
||||
MD T:\%MACHINE%\ProdSW
|
||||
MD T:\%MACHINE%\Reports
|
||||
ECHO [INFO] Machine folder created
|
||||
ECHO Machine folder created
|
||||
GOTO START_SYNC
|
||||
|
||||
:NO_MACHINE
|
||||
ECHO.
|
||||
ECHO ************************************************************
|
||||
ECHO [ERROR] MACHINE not set
|
||||
ECHO ERROR: MACHINE not set
|
||||
ECHO.
|
||||
ECHO Usage: ATESYNC TS-27
|
||||
ECHO or: SET MACHINE=TS-27
|
||||
@@ -77,35 +72,16 @@ GOTO END
|
||||
|
||||
:NO_DRIVE
|
||||
ECHO.
|
||||
ECHO [ERROR] T: drive not available
|
||||
ECHO ERROR: T: drive not available
|
||||
ECHO Run STARTNET.BAT first
|
||||
PAUSE
|
||||
GOTO END
|
||||
|
||||
:MACHINE_ERROR
|
||||
ECHO.
|
||||
ECHO [ERROR] Could not create T:\%MACHINE%
|
||||
ECHO ERROR: Could not create T:\%MACHINE%
|
||||
ECHO Check network permissions
|
||||
PAUSE
|
||||
GOTO END
|
||||
|
||||
:UPLOAD_ERROR
|
||||
ECHO.
|
||||
ECHO [WARNING] Upload may have had errors
|
||||
ECHO Check C:\ATE\CTONW.LOG
|
||||
PAUSE
|
||||
GOTO DOWNLOAD_ANYWAY
|
||||
|
||||
:DOWNLOAD_ANYWAY
|
||||
ECHO Continuing with download...
|
||||
CALL NWTOC.BAT
|
||||
GOTO END
|
||||
|
||||
:DOWNLOAD_ERROR
|
||||
ECHO.
|
||||
ECHO [WARNING] Download may have had errors
|
||||
ECHO Check C:\ATE\NWTOC.LOG
|
||||
PAUSE
|
||||
GOTO END
|
||||
|
||||
:END
|
||||
|
||||
Reference in New Issue
Block a user