Question

Locked

HELP - BATCH File Error: "as unexpected att his time"

By JHMonoflo ·
Trying to create a simple batch utility to collect some random information.

I am having an issue with the variables in the batch file:

@echo This utility will create or append the failed barcode file.
@echo off
for /f "tokens=1,2,3 delims=/\-. " %%i in ('date /t') do (set FILENAME=%%i%%j%%k.txt)
if exists %FILENAME% THEN goto APPEND

cls
@echo To end this utility, Press F6 and ENTER
@echo Scan long trays:
@echo off
COPY CON %FILENAME%

GOTO END

:APPEND
cls
@echo To end this utility, Press F6 and ENTER
@echo Scan long trays:
@echo off
COPY %FILENAME% + CON

:END

I get this error message:
This utility will create or append the failed barcode file.
Mon0713.txt was unexpected at this time.

Can't figure out why...

This conversation is currently closed to new comments.

1 total post (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Answers

Back to Software Forum
1 total post (Page 1 of 1)  

Related Discussions

Related Forums