can xyplorer unblock several files?

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
giuliastar
Posts: 365
Joined: 14 Sep 2013 07:22

can xyplorer unblock several files?

Post 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

highend
Posts: 14996
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: can xyplorer unblock several files?

Post by highend »

Nope. But batch files can execute powershell scripts and XY can execute batch files...
One of my scripts helped you out? Please donate via Paypal

Marco
Posts: 2354
Joined: 27 Jun 2011 15:20

Re: can xyplorer unblock several files?

Post 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).
Tag Backup - SimpleUpdater - XYplorer Messenger - The Unofficial XYplorer Archive - Everything in XYplorer
Don sees all [cit. from viewtopic.php?p=124094#p124094]

giuliastar
Posts: 365
Joined: 14 Sep 2013 07:22

Re: can xyplorer unblock several files?

Post 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

highend
Posts: 14996
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: can xyplorer unblock several files?

Post by highend »

Em, Marco?

This is about downloaded files not about (stale) open files :mrgreen:
One of my scripts helped you out? Please donate via Paypal

Marco
Posts: 2354
Joined: 27 Jun 2011 15:20

Re: can xyplorer unblock several files?

Post 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 .
Tag Backup - SimpleUpdater - XYplorer Messenger - The Unofficial XYplorer Archive - Everything in XYplorer
Don sees all [cit. from viewtopic.php?p=124094#p124094]

highend
Posts: 14996
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: can xyplorer unblock several files?

Post by highend »

I personally don't allow ADS for downloaded files by default. Via gpedit or registry tweak.
One of my scripts helped you out? Please donate via Paypal

giuliastar
Posts: 365
Joined: 14 Sep 2013 07:22

Re: can xyplorer unblock several files?

Post 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

highend
Posts: 14996
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: can xyplorer unblock several files?

Post 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...
One of my scripts helped you out? Please donate via Paypal

giuliastar
Posts: 365
Joined: 14 Sep 2013 07:22

Re: can xyplorer unblock several files?

Post 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

giuliastar
Posts: 365
Joined: 14 Sep 2013 07:22

Re: can xyplorer unblock several files?

Post 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

highend
Posts: 14996
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: can xyplorer unblock several files?

Post 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
One of my scripts helped you out? Please donate via Paypal

highend
Posts: 14996
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: can xyplorer unblock several files?

Post 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"); }
One of my scripts helped you out? Please donate via Paypal

giuliastar
Posts: 365
Joined: 14 Sep 2013 07:22

Re: can xyplorer unblock several files?

Post 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

highend
Posts: 14996
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: can xyplorer unblock several files?

Post 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...
One of my scripts helped you out? Please donate via Paypal

Post Reply