Scripting Home

10.08.07

Loops Part VI – For /F

by Jeremy | 4:28 pm


‘For /F’ is my favorite DOS command of all time. Its uses are endless. At it’s core, the /F switch doesn’t sound like much. It reads a file, one line at a time, and assigns the first “token” to a variable. The thing that makes it powerful is modifying how it defines a line, token, and how many tokens it should grab.
Read the rest of this entry »

Posted in Batch, Windows 2000, Windows NT 4.0, Windows Vista, Windows XP
-- Comments

|
Design by .