This works from a cmd prompt or a batch file.
attrib -r -a -s -h del [drive] path] [filename]
-------
*Report back, please*
[When responding to posts, please include the post(s) you are replying to so
that others may learn and benefit from the issue]
[How to ask a question]
http://support.microsoft.com/kb/555375
"pvc" <pvc.36u2q7@xxxxxx-mx.forums.net> wrote in message
news

vc.36u2q7@xxxxxx-mx.forums.net...
Quote:
>
> I am trying to delete the following file from an automated script (.cmd)
> file:
>
> C:\Users\<UserName>\AppData\Local\Microsoft\Windows Photo
> Gallery\Pictures.pd4
>
> I want to automate the task of deleting this file. I can delete the
> file manually, but I am having trouble deleting it from a script file or
> from the "Run\CMD" prompt.
>
> Any suggestions?
> Dan
>
>
> --
> pvc