@echo off
cls
del "C:\ProgramData\Microsoft\Windows/DRM\*.*" /Q /F /S
rd "C:\ProgramData\Microsoft\windows/DRM" /S /Q <-------------------------------- this has been removed
ping localhost -n 5 > nul
Pause
__________________________________________________________
@echo off
cls
del "C:\ProgramData\Microsoft\Windows/DRM\*.*" /Q /F /S
ping localhost -n 5 > nul
Pause
^^^^^^^^^^^^^^^USE THIS ONE ^^^^^^^^^^^^^^^^^^
As you can see the file path has not changed in any way shape or form just one line removed.... the RD command is remove directory
ive still kept the command to keep the box open to show if ther are any errors,
if this works succesfully
then we can add a couple of more to make it a little more clearer