Re: OT: NEVER MIND

  • From: Harry Binswanger <hb@xxxxxxxxxxxx>
  • To: xywrite@xxxxxxxxxxxxx
  • Date: Thu, 23 Sep 2010 11:05:05 -0400

Thanks, Carl. This is quite helpful.



Reply to note from Harry Binswanger <hb@xxxxxxxxxxxx> Wed, 22 Sep
2010 10:23:17 -0400

> could you explain the "for /f line"?

Executes command DIR W: and pipes output to FIND command, to trap
the line that contains the volume label:
Volume in drive W is [label]

Parses that line to identify the 6th space-delimited token (here,
the 6th word -- i.e., the volume label) and assigns it to
replaceable parameter %A.

Executes SET command to assign %A to variable V. %V% can then be
used to test for equivalence with "Week-ATAPI6".

For further info., issue P1 CMD/C FOR/?<Helpkey> on the CMline.

--
Carl Distefano
cld@xxxxxxxxxx


Harry Binswanger
hb@xxxxxxxxxxxx


Other related posts: