---
name: CTONWTXT.BAT not called in current AUTOEXEC
description: Current AUTOEXEC.BAT v4.1 on DOS test stations calls CTONW.BAT (DAT files only) but NOT CTONWTXT.BAT (TXT datasheets). TXT files piling up in C:\STAGE on DOS machines.
type: project
---

## The Gap (confirmed 2026-03-27 via John Lehman email)

Current AUTOEXEC.BAT v4.1 (deployed 2026-03-12) boot sequence on DOS test stations:
1. STARTNET.BAT — maps T: = \\D2TESTNAS\test, X: = \\D2TESTNAS\datasheets
2. NWTOC.BAT — checks for software updates from network
3. CTONW.BAT — uploads .DAT log files to T:\TS-XX\LOGS\ (only .DAT, NOT .TXT)
4. menux — launches the test menu system

Missing: CTONWTXT.BAT (copies C:\STAGE\*.txt to X: drive) is NOT called.
ARCHBAT.BAT (which called NWtoC, CtoNW, AND CtoNWtxt) is also NOT called.
John Lehman is still investigating where/if ARCHBAT was previously called.

Peter Iliya found many .TXT files in C:\STAGE dating back to Sept 2025 on test machines.

## CTONWTXT.BAT Logic (from email screenshots)
- Checks if C:\STAGE\*.txt exists
- Verifies network via %2\serve.sys
- copy C:\STAGE\*.txt %2 (X: drive = \\D2TESTNAS\datasheets\Test_Datasheets)
- DEL C:\STAGE\*.txt
- Logs to C:\ATE\CtoNWtxt.log

## Fix Options
1. Add `CALL C:\BAT\CTONWTXT.BAT %MACHINE% X:` to AUTOEXEC.BAT (or to CTONW.BAT)
2. Or integrate TXT transfer into the existing CTONW.BAT

## Filename Encoding (from John's email)
- 5-digit WO#: {WO#}-{dash#}.TXT (e.g., 12345-1.TXT)
- 6-digit WO# (10xxxx-19xxxx): first 2 digits encoded A-J, then 4 digits + dash# (e.g., 123456 -> C3456-1.TXT)
- Invalid WO#s get filename "BAD-{dash#}.TXT" with search name "BAD"

**Why:** This is why X:\Test_Datasheets has a backlog and DFWDS hasn't been processing new files.
**How to apply:** Need to fix CTONW.BAT or AUTOEXEC.BAT to include TXT transfer, then deploy to all 64 stations.
