samintz
Scott Mintz
- May
- 1,590
- 27
Well, since you said that DIR works correctly, then use this syntax:
for /f %I in ('dir /b ::\.[A-z]{1}[0-9]{7}.pdf') do copy %I ehs-%I
-Scott
pb4072 <> wrote on 07/28/2008 08:30:38 AM:
for /f %I in ('dir /b ::\.[A-z]{1}[0-9]{7}.pdf') do copy %I ehs-%I
-Scott
pb4072 <> wrote on 07/28/2008 08:30:38 AM:
"do."> Nope. Sorry. None of these solutions work. I get nothing. I just
> tried it with a simple "echo." I guess I'll make a batch file and use
>
> for %I in ("::\.[A-z]{1}[0-9]{7}.pdf") do copy %I ehs-%I
> for %I in ("::"\."[A-z]{1}[0-9]{7}.pdf") do copy %I ehs-%I
>
> -Peter
>