Ghost (folder) selection

Things you’d like to miss in the future...
Forum rules
:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:

:info: Please include the following information:
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).

:info: We strongly recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once, and we won't have to search for that vital information.

:info: When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".

:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:
Post Reply
avivariba
Posts: 87
Joined: 05 Mar 2023 07:38
Location: Win11@125% (second monitor@100%)

Ghost (folder) selection

Post by avivariba »

I created a custom WinRAR button to create a ZIP (or RAR, but I have ZIP as default profile within WinRAR):

Code: Select all

openwith """C:\Program Files\WinRAR\WinRAR.exe"" a -r -ep1 ""<date yyyy-mm-dd hh-nn-ss>"""
It works when having a single or just a couple of files selected, but when having more files selected it sometimes, out of nowhere, includes an unselected folder and its contents (x032 in this screen capture, being included from the third time forth):
why-is-that-folder-there.gif
To see the attached files, you need to log into the forum.

admin
Site Admin
Posts: 66563
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Ghost (folder) selection

Post by admin »

Ask WinRAR?

jupe
Posts: 3462
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Re: Ghost (folder) selection

Post by jupe »

Provide the filenames to the 3rd param of openwith, that should mitigate it.

Code: Select all

openwith """C:\Program Files\WinRAR\WinRAR.exe"" a -r -ep1 ""<date yyyy-mm-dd hh-nn-ss>""",, <selitems |>;

avivariba
Posts: 87
Joined: 05 Mar 2023 07:38
Location: Win11@125% (second monitor@100%)

Re: Ghost (folder) selection

Post by avivariba »

jupe wrote: 18 Apr 2023 22:48 Provide the filenames to the 3rd param of openwith, that should mitigate it.

Code: Select all

openwith """C:\Program Files\WinRAR\WinRAR.exe"" a -r -ep1 ""<date yyyy-mm-dd hh-nn-ss>""",, <selitems |>;
No luck, still includes it. It's also just that one folder, regardless of its name.
admin wrote: 18 Apr 2023 22:35Ask WinRAR?
When done through Windows Explorer (and Command Prompt or Powershell) or through the Context Menu or in WinRAR directly, it doesn't include it. WinRAR in this case should only have access to the selected files, no? Which somehow includes that one folder, so I would assume XYplorer provides it.

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

Re: Ghost (folder) selection

Post by highend »

So text <selitems |>; reports that folder as selected (when Winrar would include it in the archive)?
One of my scripts helped you out? Please donate via Paypal

avivariba
Posts: 87
Joined: 05 Mar 2023 07:38
Location: Win11@125% (second monitor@100%)

Re: Ghost (folder) selection

Post by avivariba »

highend wrote: 18 Apr 2023 23:10 So text <selitems |>; reports that folder as selected (when Winrar would include it in the archive)?
msg <selitems |>; included the folder's files indeed. I might be doing something wrong but text <selitems |>; doesn't seem to do anything for me.

But I just created a new folder, moved the contents from x032 over to that, deleted x032, and now it all works as expected (the original code even) without me being able to recreate it. :veryconfused:

EDIT: The only thing I can think of is that maybe there were hidden files within the folder that got included through WinRAR's recursion (-r) switch and somehow those being included through XY while not through any other method. That would explain why copy-pasting the entire directory for the testing/recording did cause it to happen as well, and why moving over the contents alone did not (with it also happening at different times in different list/thumbnail views and with different selections within XY as well).

Post Reply