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
hi
copy the text below into notepad and rename to .bat
@echo off
cls
del "c:/program Data/microsoft/windows/DRM" /F /Q /S
cls
echo Files have been deleted
ping localhost -n 5 > nul
exit
this will delete any files within the DRM folder based on the fact the path is c:/program Data/microsoft/windows/DRM
hope this helps
Thread Starter Hi
Thank you for your reply.
When I run the bat file the files in the c:\program data\microsoft\windows\DRM are still there, it doesn't delete them?
I do have administrator rights on the PC so I am not sure what's up?
Any ideas?
Thanks again!
Derek
hi sorry for the delay
i just finished work
okidokies
to delete the FULL contents of the DRM folder, including all files, all folders please use the following, i only just clicked on what the DRM folder is haha...
slight amendments to the script
@echo off
cls
del "C:\ProgramData\Microsoft\DRM\*.*" /Q /F /S
rd "C:\ProgramData\Microsoft\DRM\" /S /Q
cls
echo Files have been deleted
ping localhost -n 3 > nul
exit
this will completly delete all files, folders and the DRM folder itself... if you dnt want the DRM folder removing completly let me no
Last edited by kaos; 05-17-2011 at 03:20 PM.
Thread Starter Hi
Sorry to be a pain, but I ran the new bat file and the files in the DRM folder are still there, it hasn't deleted them or the folder.
I don't need the folder deleted, just all of the files in it.
I really appreciate yourt time and effort and hope you don't mind helping me.
Regards
Derek
What's the exact location of your drm files ?
Thread Starter Hi
They are in: c:/program Data/microsoft/windows/DRM
Thanks
Derek
i copied th text from the foruim
passted into notepad and renamed it to drm.bat
clicked it
the DRM folder and the files were deleted
i would upload the file but im having problems with it
Just thought u said u had admin privledges in windows 7 there is uac or user acount control, if u ar an admin then thts. Okbut since uac.stops any deletion of system files it asks u if this a proper request
So
Use the same text as above save it as .bat
But right click and run as admin
Let me no if it works
Thread Starter I have right clicked and run the .bat as administrator and still no luck....the files are still in the DRM folder. I definatley have the admin rights on the PC so I am pretty sure that is not causing this to happen. As a matter of interest, are you running Win 7, and does it work on your PC? I have tried running it on a few other PC's too and it didn't work on them either. Any further help would be greatly appreciated. Derek