Hi
Can someone help me with a batch file that will delete the files in the c:/program Data/microsoft/windows/DRM folder on a Win 7 PC?
Thanks in advance.
Derek
Hi
Can someone help me with a batch file that will delete the files in the c:/program Data/microsoft/windows/DRM folder on a Win 7 PC?
Thanks in advance.
Derek
This isn't a scripting forum.
However,
should do it.Code:rd /S "c:/program Data/microsoft/windows/DRM"
I copied it from the last program in which I passed a parameter, which would have been pre-1989 I guess. - esbo
Hi
Thanks for the reply and I apologise for putting the post in the wrong forum. I have tried running the .bat file you wrote but it doesn't seem to delete the files in the DRM folder?
RD /S should work, IF you have permission to remove the entire folder tree. Did it ask for confirmation of the delete?
try
del "c:/program Data/microsoft/windows/DRM/*.*"
But that will also fail if you lack the required permissions.
Batch files - The DEL command
"Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
Friedrich Nietzsche
"I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
George Best
"If you are going through hell....keep going."
Winston Churchill
Hi
The first one did ask to confirm whether to delete the files, the second didn't. The files are still there after the second one as well? I do have administrator rights on the PC so I am not sure why it's not doing the trick for me?
Any ideas?
Thanks again for your help.
Derek
That's because Digital Rights Management is protected by the operating system... the files are probably flagged both Read Only and System ... I'd be surprised if they're not also flagged as Hidden...
AND... you may still get permissions errors...Code:cd "c:/program Data/microsoft/windows/DRM" attrib -s -h -r /s *.* del /s /q *.*