Files
claudetools/CTONWTXT.BAT
Mike Swanson 2121a56894 fix: Remove NUL device references from CTONW.BAT and add CTONWTXT.BAT
Fixed CTONW.BAT DOS 6.22 compatibility:
- Changed 14 directory existence checks from \NUL to \*.*
  * C:\BAT\NUL -> C:\BAT\*.*
  * T:\%MACHINE%\NUL -> T:\%MACHINE%\*.*
  * %TARGETDIR%\NUL -> %TARGETDIR%\*.*
  * %LOGSDIR%\NUL -> %LOGSDIR%\*.*
  * All log subdirectories (8BLOG, DSCLOG, HVLOG, etc.)
  * All data source directories (8BDATA, DSCDATA, HVDATA, etc.)

- Preserved correct >NUL 2>NUL output redirection (lowercase)

Added CTONWTXT.BAT:
- Text datasheet archiving script called by ARCHBAT.BAT
- Copies C:\STAGE\*.txt to network target directory
- Already DOS 6.22 compatible (no modifications needed)

All BAT files for ARCHBAT.BAT workflow now deployed:
- NWTOC.BAT (network to computer)
- CTONW.BAT (computer to network)
- CTONWTXT.BAT (text file archiving)

NUL is a reserved device name in DOS/Windows and cannot be used
as a filename or in path existence checks. Using *.* wildcard
correctly tests for directory existence.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-20 16:03:00 -07:00

1.4 KiB