Discussion:
for /a:d ??
(too old to reply)
CRNG
2015-02-28 17:07:29 UTC
Permalink
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
2015-02-28 17:13:04 UTC
Permalink
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!!
Post by CRNG
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\*
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
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.
Loading...