I'm having a problem using delims in the For loop.
Code: Select all
@echo off
Setlocal EnableDelayedExpansion
For /f "tokens=* delims=:" %%A IN (DataFile.Tronic) DO (
Set File1=%%A
Set File2=%%B
Set File3=%%C
)
pause
Echo %File1%
Echo %File2%
Echo %File3%
pause
DataFile.Tronic contains the following data:
Code: Select all
E3455890.bat:Status=RootNone:9475d01.xml:
Yet the output on the cmd console is
Code: Select all
E3455890.bat:Status=RootNone:9475d01.xml:
%B
%C
I don't understand why the delims don't separate the variables.
Any help is greatly appreciated!