Babu wrote:
> Iam executing the below command.. It errors out saying
> invalid directory.. because it cannot understand the
> directory name more than 8 characters. Let me know is
> there any fix for the same
> --------------------------------------------
> forfiles -pC:\Program Files\Microsoft SQL
> Server\MSSQL\BACKUP\ -s -m*.Bak -d-4 -c"CMD /C
> DEL /Q ""@PATH\@FILE""
>
> --------------------------------------------
>
> Appreciate ur help
>
> Babu
>
>
Type 'FORFILES -?' at the CMD prompt for some examples. Your
problems have to do with your use of too many or too few double
quotes. For example, you will have to use
. . . -c"CMD /C DEL /Q 0x22@PATH\@FILE0x22"
instead of what you are using. Also, the path after '-p' must
be enclosed in double quotes since there are spaces in the path.
--
Phil Robyn
Univ. of California, Berkeley
u n z i p m y a d d r e s s t o s e n d e - m a i l
|