debug: Add parameter debugging and remove redundant PAUSE messages

Changes:
1. Added DEBUG output at script start to show %1 and %2 parameters
2. Removed 46 redundant "ECHO Press any key..." lines before PAUSE
   - DOS 6.22 PAUSE command already displays this message
   - No need for custom echo with same text

Debug output will show:
  DEBUG: Parameter 1 = [value]
  DEBUG: Parameter 2 = [value]

This will help diagnose why machine name parameter is not being
received when running: T:\DEPLOY.BAT TS-4R

Files modified:
- DEPLOY.BAT: Added debug lines 18-22, removed 10 ECHO lines
- UPDATE.BAT: Removed 7 ECHO lines
- CTONW.BAT: Removed 8 ECHO lines
- NWTOC.BAT: Removed 6 ECHO lines
- REBOOT.BAT: Removed 4 ECHO lines
- STAGE.BAT: Removed 6 ECHO lines
- CHECKUPD.BAT: Removed 2 ECHO lines
- DOSTEST.BAT: Removed 2 ECHO lines
- AUTOEXEC.BAT: Removed 1 ECHO line

Deployed to D2TESTNAS: /data/test/DEPLOY.BAT

Next test: Run T:\DEPLOY.BAT TS-4R and check DEBUG output

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-01-19 17:22:58 -07:00
parent 3b55cf1312
commit f9c3a5d3a9
10 changed files with 51 additions and 46 deletions

View File

@@ -26,7 +26,6 @@ ECHO.
ECHO Or set MACHINE variable in AUTOEXEC.BAT:
ECHO SET MACHINE=TS-4R
ECHO.
ECHO Press any key to exit...
PAUSE
GOTO END
@@ -75,7 +74,6 @@ ECHO.
ECHO Or map manually:
ECHO NET USE T: \\D2TESTNAS\test /YES
ECHO.
ECHO Press any key to exit...
PAUSE
GOTO END
@@ -156,7 +154,6 @@ ECHO - T: drive is writable
ECHO - Sufficient disk space on T:
ECHO - Network connection is stable
ECHO.
ECHO Press any key to exit...
PAUSE
GOTO END
@@ -169,7 +166,6 @@ ECHO - Target drive is full
ECHO - Network connection lost
ECHO - Permission denied
ECHO.
ECHO Press any key to exit...
PAUSE
GOTO END
@@ -182,7 +178,6 @@ ECHO - Insufficient memory
ECHO - Invalid path
ECHO - Target drive not accessible
ECHO.
ECHO Press any key to exit...
PAUSE
GOTO END
@@ -192,7 +187,6 @@ ECHO [WARNING] Backup terminated by user (Ctrl+C)
ECHO.
ECHO Backup may be incomplete!
ECHO.
ECHO Press any key to exit...
PAUSE
GOTO END
@@ -204,7 +198,6 @@ ECHO This may indicate:
ECHO - All files are already up to date (/D option)
ECHO - Source drive is empty
ECHO.
ECHO Press any key to exit...
PAUSE
GOTO END