Ted, Christian,
You are exactly right. It is cryptic (ala UNIX). The FOR command in
the CMD shell is very convoluted. I actually learned this particular
construct from a friend of mine a couple years back and kept it in my
"tips and tricks" toolbox just in case I would ever need it. I actually
do understand how it works (what does that say about me), but I am not
sure I would have ever been able to come up with it on my own. My
original version looked much more like Christian's.
- Lowell
-----Original Message-----
From: vtech-install-config Listmanager
[mailto:vtech-install-config.listmanager@...]
Sent: Monday, September 12, 2005 4:08 PM
Subject: Re: Running VEdit from a Flash Drive
From: "Christian Ziemski"
On Mon, 12 Sep 2005 16:26:00 -0400, Ted Green wrote:
>>>for /D %i in (.) do set d=%~di
>
>(To the melody of "Its beginning to look a lot like Christmas")
>
>Its beginning to look a lot like Unix. :-)
>Its almost scary that anyone can understand this, much less write it.
>:-))
Agreed!
The CMD shell of Windows may have learned much over the last years (from
UNIX too), but the syntax is unbelievable horrible.
That is especially true for the feature-blasted FOR command!
Christian
To reply: mailto:vtech-install-config.19284@...
To start a new topic: mailto:vtech-install-config@...
To login: http://...
To (un)subscribe: mailto:
vtech-install-config.list-request@...
|
|