Reg file to batch remove BLOCK from files /Folder


  1. Posts : 1,523
    windows 10 PRO
       #1

    Reg file to batch remove BLOCK from files /Folder


    Hi I found this, which I added to the registry but the right click option to unblock files / folders hasnt appeared

    any help please

    [HKEY_CLASSES_ROOT\*\shell\unblockfile]@=”Unblock file”[HKEY_CLASSES_ROOT\*\shell\unblockfile\command]@=”cmd /c streams -d \”%1\””[HKEY_CLASSES_ROOT\Directory\shell\unblockallthefiles]@=”Unblock the files inside”[HKEY_CLASSES_ROOT\Directory\shell\unblockallthefiles\command]@=”cmd /c streams.exe -d -s \”%1\””
      My Computer


  2. Posts : 2,832
    Windows 10 Pro X64
       #2

    Hi,

    Code:
    Windows Registry Editor Version 5.00
    
    [HKEY_CLASSES_ROOT\*\shell\unblockfile]
    @="Unblock file"
    
    [HKEY_CLASSES_ROOT\*\shell\unblockfile\command]
    @="cmd /c streams -d \"%1\""
    
    [HKEY_CLASSES_ROOT\Directory\shell\unblockallthefiles]
    @="Unblock the files inside"
    
    [HKEY_CLASSES_ROOT\Directory\shell\unblockallthefiles\command]
    @="cmd /c streams.exe -d -s \"%1\""

    This ought to do the trick but make sure to DL from Sysinternals and copy "Streams.exe to %windir%\system32.

    Cheers,
      My Computers


  3. Posts : 1,523
    windows 10 PRO
    Thread Starter
       #3

    Thanks, did you modify the text, or is it the same ?

    thanks
      My Computer


  4. Posts : 2,832
    Windows 10 Pro X64
       #4

    Hi,


    Thanks, did you modify the text, or is it the same ?
    No, but it works for me.

    Cheers,
      My Computers


  5. Posts : 1,523
    windows 10 PRO
    Thread Starter
       #5

    Good enough for me.....when I tried it I got a message that the file I was trying to unlock was not associated with the unblock command, or something similar and was not available for folders
      My Computer


  6. Posts : 1,523
    windows 10 PRO
    Thread Starter
       #6

    says cannot import it is not a registry script
      My Computer


  7. Posts : 2,832
    Windows 10 Pro X64
       #7

    Hi,

    Are you sure you saved the file as a .reg file ?

    It works just fine for me.

    Cheers,
      My Computers


  8. Posts : 1,523
    windows 10 PRO
    Thread Starter
       #8

    Yes I did......can the file you created be attached to this post ?
      My Computer


  9. Posts : 2,832
    Windows 10 Pro X64
       #9

    Hi,

    Here you go:
    Reg file to batch remove BLOCK from files /Folder Attached Files
      My Computers


  10. Posts : 1,523
    windows 10 PRO
    Thread Starter
       #10

    Thank you it worked perfectly....handy one to have I think
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 10:34.
Find Us




Windows 10 Forums