Parentheses cause error
Posted: 23 Dec 2014 13:02
Hi all!
I have this code:
a.cmd
If I run it:
FILEPOINTER.EXE is Aacini's excelent program (see viewtopic.php?p=34051#p34051).
The example above will work without this program because of the error so you don't have to have it.
Any ideas how to avoid this error when parentheses are present in a record?
I want step 3 to work (with filepointer.exe).
Thanks.
Saso
I have this code:
a.cmd
Code: Select all
@echo off
set recstring=SOME TEXT with ( and ). Errors.&rem
goto %1
:1
echo 1
>outfile1.txt (echo %recstring%)
goto :EOF
:2
echo 2
echo %recstring%>outfile2.txt
goto :EOF
:3
echo 3
(
filepointer.exe 1 0
echo %recstring%
)>outfile3.txt
echo END
If I run it:
Code: Select all
c:\temporary\dostips>a.cmd 1
1
. was unexpected at this time.
c:\>a.cmd 2
2
c:\>a.cmd 3
3
. was unexpected at this time.
c:\>
FILEPOINTER.EXE is Aacini's excelent program (see viewtopic.php?p=34051#p34051).
The example above will work without this program because of the error so you don't have to have it.
Any ideas how to avoid this error when parentheses are present in a record?
I want step 3 to work (with filepointer.exe).
Thanks.
Saso