Because of the spaces in the name of 'Windows Photo Gallery', you need to
enclose the entire path in quotes:
DEL "C:\Users\Keith\AppData\Local\Microsoft\Windows Photo
Gallery\Pictures.pd4"
--
Good Luck,
Keith
Microsoft MVP [Windows Shell/User]
"pvc" <pvc.36u9o4@xxxxxx-mx.forums.net> wrote in message
news

vc.36u9o4@xxxxxx-mx.forums.net...
Quote:
>
> Hmmmmm...
> It works even without the Attrib command. Though I don't understand
> why I have to change directory first???
>
> This works:
> CD C:\Users\Dan\AppData\Local\Microsoft\Windows Photo Gallery
> DEL Pictures.pd4
>
> and this does NOT work:
> DEL C:\Users\Dan\AppData\Local\Microsoft\Windows Photo
> Gallery\Pictures.pd4
>
> Oh, I'm leaving on a mini vacation. So if someone replies I may not
> read your reply for a while...
>
>
> --
> pvc