Page 1 of 2

can xyplorer unblock several files?

Posted: 16 Nov 2015 16:09
by giuliastar
Hi
can xyplorer unblock several files at once ?

does it have this feature ?

like

Code: Select all

unblock-file -path "C:\Users\Brink\Desktop\Example.reg"
 get-childitem "full path of folder" | unblock-file
thanks

Re: can xyplorer unblock several files?

Posted: 16 Nov 2015 16:14
by highend
Nope. But batch files can execute powershell scripts and XY can execute batch files...

Re: can xyplorer unblock several files?

Posted: 16 Nov 2015 16:18
by Marco
As stated above, scripting is the way. You can use this utility, just in case: https://technet.microsoft.com/en-us/sys ... s/bb896655 (I've never used PS very proficiently, my bad).

Re: can xyplorer unblock several files?

Posted: 16 Nov 2015 16:24
by giuliastar
Marco wrote:As stated above, scripting is the way. You can use this utility, just in case: https://technet.microsoft.com/en-us/sys ... s/bb896655 (I've never used PS very proficiently, my bad).
thanks
i will try it

Re: can xyplorer unblock several files?

Posted: 16 Nov 2015 16:28
by highend
Em, Marco?

This is about downloaded files not about (stale) open files :mrgreen:

Re: can xyplorer unblock several files?

Posted: 16 Nov 2015 17:50
by Marco
Ahah, my bad!
I always use this to unlock the files from the internetz (technically, you purge the ADS), http://www.nirsoft.net/utils/alternate_ ... reams.html .

Re: can xyplorer unblock several files?

Posted: 16 Nov 2015 17:56
by highend
I personally don't allow ADS for downloaded files by default. Via gpedit or registry tweak.

Re: can xyplorer unblock several files?

Posted: 16 Nov 2015 19:38
by giuliastar
highend wrote:I personally don't allow ADS for downloaded files by default. Via gpedit or registry tweak.
hi
can i do it ?
thanks
i use w10 and w7

Re: can xyplorer unblock several files?

Posted: 17 Nov 2015 01:14
by highend
E.g. in a command prompt:

Code: Select all

REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Attachments" /v "SaveZoneInformation" /t REG_DWORD /d "0x00000001" /f
Don't know if this still works in Win10 (that OS sucks), but it should work in Win 7...

Re: can xyplorer unblock several files?

Posted: 17 Nov 2015 07:22
by giuliastar
highend wrote:E.g. in a command prompt:

Code: Select all

REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Attachments" /v "SaveZoneInformation" /t REG_DWORD /d "0x00000001" /f
Don't know if this still works in Win10 (that OS sucks), but it should work in Win 7...
hi
thanks
i will try it , yes i know w10 sucks

Re: can xyplorer unblock several files?

Posted: 22 Nov 2015 16:34
by giuliastar
hi
by the way , xyplorer can show alternate streams ?

is there a way to purge alternate streams? i mean files that does no exist anymore ,deteled

thanks

Re: can xyplorer unblock several files?

Posted: 22 Nov 2015 17:03
by highend
xyplorer can show alternate streams ?
Afaik not
is there a way to purge alternate streams?
E.g.:
https://technet.microsoft.com/en-us/sys ... 97440.aspx

Re: can xyplorer unblock several files?

Posted: 22 Nov 2015 18:41
by highend
To show ADS with XYplorer:

You need the Streams.exe from https://technet.microsoft.com/en-us/sys ... 97440.aspx

Copy it anywhere you like and adapt the path in the following script.

Use that script for a custom column and it will display the ads data.

I've only tested it with a single file with one ads stream...

No, it will not be ultrafast and I wouldn't use it for folders with a large set of files but at least it (probably) works.

To make it faster you'd need to write an e.g. C++ application that reads ads data from a single file so that no further
parsing in xy is necessary...

Code: Select all

    $file  = runret("""D:\Streams\streams.exe"" ""<cc_item>""");
     $ads  = gettoken(regexmatches($file, "^   .*"), 2, ":");
     if ($ads) { return readfile("<cc_item>:$ads"); }

Re: can xyplorer unblock several files?

Posted: 22 Nov 2015 19:24
by giuliastar
highend wrote:To show ADS with XYplorer:

You need the Streams.exe from https://technet.microsoft.com/en-us/sys ... 97440.aspx

Copy it anywhere you like and adapt the path in the following script.

Use that script for a custom column and it will display the ads data.

I've only tested it with a single file with one ads stream...

No, it will not be ultrafast and I wouldn't use it for folders with a large set of files but at least it (probably) works.

To make it faster you'd need to write an e.g. C++ application that reads ads data from a single file so that no further
parsing in xy is necessary...

Code: Select all

    $file  = runret("""D:\Streams\streams.exe"" ""<cc_item>""");
     $ads  = gettoken(regexmatches($file, "^   .*"), 2, ":");
     if ($ads) { return readfile("<cc_item>:$ads"); }
hi highend
may i ask you a question ?
is there a way to delete files or folder protected by the operation system ?

for example to delete a folder i had to ..after the w10 update

Code: Select all

takeown /F C:\Windows.old\* /R /A
icacls C:\Windows.old\*.* /T /grant administrators:F
rmdir /S /Q C:\Windows.old\
is there a way to do it with xyplorer ? or is there freeware that can do the same ?
thanks

Re: can xyplorer unblock several files?

Posted: 22 Nov 2015 19:29
by highend
As long as XY is running with admin rights? Sure, why not. You can execute all these commands with the scripting command "run" (and a following cmd /c together with the command to execute). The necessary thing to watch out for: Correct quoting...

Or by putting them into a .bat file and run that one.

It would be even possible to use a non elevated xy instance and do the elevation via a .vbs file...