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:
@@ -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 .....................................................
|
||||
|
||||
Reference in New Issue
Block a user