J
JIM.H.
Hello,
I need to read first line in a file, and I am using the
following three lines.
FOR /F "eol=; tokens=1" %%i in (%myFile%) do (set myPar=%%
i &GOTO:forend)
:forend
Echo %myPar%
There are other lines after this, that performs some other
operations.
Is this correct and secure way? I do not want FOR goes to
second line and print %myPar% again, that will cause
trouble.
Thanks,
Jim.
I need to read first line in a file, and I am using the
following three lines.
FOR /F "eol=; tokens=1" %%i in (%myFile%) do (set myPar=%%
i &GOTO:forend)
:forend
Echo %myPar%
There are other lines after this, that performs some other
operations.
Is this correct and secure way? I do not want FOR goes to
second line and print %myPar% again, that will cause
trouble.
Thanks,
Jim.