Quantcast
Page 1 of 2 12 LastLast
Results 1 to 10 of 20
Like Tree1Likes

Win 7 Batch file needed

  1. #1
    derekaus is offline Junior Member
    Enjoys Windows 7 Forums
     
    Join Date
    May 2011
    Posts
    10

    Win 7 Batch file needed

    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

    Reply With Quote Reply With Quote

  2. #2
    kaos's Avatar
    kaos is offline Senior Member
    BSOD's,batch scripts bring em
    on
     
    Join Date
    May 2011
    Posts
    876

    Re: Win 7 Batch file needed

    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
    Elmer likes this.

    Reply With Quote Reply With Quote

  3. #3
    derekaus is offline Junior Member Thread Starter Thread Starter
    Enjoys Windows 7 Forums
     
    Join Date
    May 2011
    Posts
    10

    Re: Win 7 Batch file needed

    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

    Reply With Quote Reply With Quote

  4. #4
    kaos's Avatar
    kaos is offline Senior Member
    BSOD's,batch scripts bring em
    on
     
    Join Date
    May 2011
    Posts
    876

    Re: Win 7 Batch file needed

    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.

    Reply With Quote Reply With Quote

  5. #5
    derekaus is offline Junior Member Thread Starter Thread Starter
    Enjoys Windows 7 Forums
     
    Join Date
    May 2011
    Posts
    10

    Re: Win 7 Batch file needed

    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

    Reply With Quote Reply With Quote

  6. #6
    kaos's Avatar
    kaos is offline Senior Member
    BSOD's,batch scripts bring em
    on
     
    Join Date
    May 2011
    Posts
    876

    Re: Win 7 Batch file needed

    What's the exact location of your drm files ?

    Reply With Quote Reply With Quote

  7. #7
    derekaus is offline Junior Member Thread Starter Thread Starter
    Enjoys Windows 7 Forums
     
    Join Date
    May 2011
    Posts
    10

    Re: Win 7 Batch file needed

    Hi

    They are in: c:/program Data/microsoft/windows/DRM

    Thanks
    Derek

    Reply With Quote Reply With Quote

  8. #8
    kaos's Avatar
    kaos is offline Senior Member
    BSOD's,batch scripts bring em
    on
     
    Join Date
    May 2011
    Posts
    876

    Re: Win 7 Batch file needed

    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

    Reply With Quote Reply With Quote

  9. #9
    kaos's Avatar
    kaos is offline Senior Member
    BSOD's,batch scripts bring em
    on
     
    Join Date
    May 2011
    Posts
    876

    Re: Win 7 Batch file needed

    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

    Reply With Quote Reply With Quote

  10. #10
    derekaus is offline Junior Member Thread Starter Thread Starter
    Enjoys Windows 7 Forums
     
    Join Date
    May 2011
    Posts
    10

    Re: Win 7 Batch file needed

    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

    Reply With Quote Reply With Quote

Page 1 of 2 12 LastLast

LinkBacks (?)


Similar Threads

  1. Copy to c:\ doesn't work with batch file
    By Glip in forum Windows 7 Programming and Scripting
    Replies: 28
    Last Post: 06-04-2012, 01:48 PM
  2. Replies: 2
    Last Post: 04-20-2011, 09:44 AM
  3. Energy Report Batch File
    By Warsick in forum Windows 7 Programming and Scripting
    Replies: 1
    Last Post: 04-06-2010, 10:35 PM
  4. Replies: 3
    Last Post: 03-26-2010, 08:20 AM
  5. Need to Convert Windows XP Batch File to Windows 7
    By Grayson Lee in forum Windows 7 Programming and Scripting
    Replies: 1
    Last Post: 03-03-2010, 04:07 AM

Visitors found this page by searching for:

Search engine data is still being processed!

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •