HELP - BATCH File Error: "as unexpected att his time" - TechRepublic
Question
July 13, 2009 at 09:48 AM
jhmonoflo

HELP – BATCH File Error: “as unexpected att his time”

by jhmonoflo . Updated 17 years ago

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 discussion is locked

All Comments