FirSt raw of my file named E:\DATA.TXT Is:
<?xml version="1.0" encoding="UTF-8"?>
but when I run this script to manipulate string
Code: Select all
FOR /F "delims=" %%a in (%1) do set "name=%%a" &call :procName %1
goto:eof
:procName
set name1=%name:~0,9%
I got this error:
E:\>set "name1"=<?xml version="1.0" encoding="UTF-8"?>" & call :procName E:\DATA.TXT
E:\>set name1= ver 0<?xml
The filename, directory name, or volume label syntax is incorrect.
I suppose the problem is quote, how can I solve this issue?
Thanks you and Regards