= As Delimiter

  • Thread starter Thread starter Barney
  • Start date Start date
B

Barney

I'm sure this question has already been posted but I
cannot find it.

How does one use the equal sign as a delimiter in a FOR
statement (FOR /F "Delims==" ....)
 
| I'm sure this question has already been posted but I
| cannot find it.
|
| How does one use the equal sign as a delimiter in a FOR
| statement (FOR /F "Delims==" ....)

You are halfway there Barney.
try this:

@echo off
for /F "tokens=1,* delims==" %%A in ('set') do echo/Var %%A contains %%B
 
Back
Top