CTONWTXT.BAT v2.3: Remove MD commands, pre-create dirs on NAS instead

DOS 6.22 MD fails on existing dirs, then COPY creates a file instead of
copying into a directory. Dirs now pre-created on NAS server side.
Also removed trailing backslash from COPY target path.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
OC-5070
2026-03-28 16:10:18 -07:00
parent 77c23635df
commit 3b3075503f

View File

@@ -1,11 +1,9 @@
@ECHO OFF
REM Computer to Network - Upload text datasheet files to network
REM Version: 2.2 - All uppercase paths for DOS 6.22 compatibility
REM Version: 2.3 - Pre-create dirs on server side, DOS just copies
REM Last modified: 2026-03-28
ECHO .....................................................
ECHO Archiving text datasheet files to network...
MD T:\STAGE
MD T:\STAGE\%MACHINE%
COPY /Y C:\STAGE\*.TXT T:\STAGE\%MACHINE%\
COPY /Y C:\STAGE\*.TXT T:\STAGE\%MACHINE%
ECHO .....................................................