Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

for /a:d ??

12 views
Skip to first unread message

CRNG

unread,
Feb 28, 2015, 12:07:28 PM2/28/15
to
I have a directory with several "date" subdirectories in it, such as:

Directory of D:\erunt\*

. <DIR> 2/26/15 13:42 registry backup
.. <DIR> 2/26/15 13:42
2015-02-16 <DIR> 2/16/15 14:51
2015-02-26 <DIR> 2/26/15 13:42

The command
D:\tmp0>dir /a:d d:\erunt\*

lists the following correctly:

Volume in drive D is Data Serial number is 982b:d96b
Directory of D:\erunt\*

. <DIR> 2/26/15 13:42 registry backup
.. <DIR> 2/26/15 13:42
2015-02-16 <DIR> 2/16/15 14:51
2015-02-26 <DIR> 2/26/15 13:42

however at the command line

for /a:d %f in d:\erunt\20* echo %f

shows the errror message.

Usage : FOR [/A:[[-][+]rhsdaecjot] /D /F ["options"] /H /I"text" /L /R
[path] /T"..."] %var IN ([@]set | start, step, end) [DO] command ...

I also get an error message for the command

for /d %f in d:\erunt\20* echo %f

Can anyone suggest what I am doing wrong with
TCC 9.02.151 Windows XP [Version 5.1.2600](sp3)?

Thanks
--
Web based forums are like subscribing to 10 different newspapers
and having to visit 10 different news stands to pickup each one.
Email list-server groups and USENET are like having all of those
newspapers delivered to your door every morning.

CRNG

unread,
Feb 28, 2015, 12:13:03 PM2/28/15
to
Well never mind. I thought this question seemed familiar, and found
that I has asked it before (5/2015) and Stand Brown answered it for
me.

Thanks again Stan.

Isn't getting old great!!



On Sat, 28 Feb 2015 11:07:29 -0600, CRNG <noe...@atthisdomain.gov>
wrote in <3us3faljfbcnkqc23...@4ax.com>
0 new messages