Open destination folder after moving files

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Native2904
Posts: 133
Joined: 23 Apr 2025 18:48
Location: Aachen

Open destination folder after moving files

Post by Native2904 »

Hi, is there a way to automatically open the destination folder after completing a move operation?
When I move a file using Shift+F7, could the destination folder automatically open as a new tab, or be highlighted in the folder tree so I can click on it?
If not, would it perhaps be possible for you to implement this feature?
I know life isn’t a wish list — but asking doesn’t hurt... and maybe the idea isn’t that bad after all ≥
Perhaps this could be offered as an optional setting or tweak — in case it’s not currently possible.
Lts. 64-bit XY-Port. ƒ JetBrainsMono @ Windows 11 Pro 24H2 ▣ 1920x1080 ⇵ 115%
xytags4tc

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

Re: Open destination folder after moving files

Post by highend »

Would be scriptable but only with a html interface (or a multi-step gui), not with the original gui element...
One of my scripts helped you out? Please donate via Paypal

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

Re: Open destination folder after moving files

Post by admin »

Go | Go to Last Target (Ctrl+Alt+F7) is not so far away.

Native2904
Posts: 133
Joined: 23 Apr 2025 18:48
Location: Aachen

Re: Open destination folder after moving files

Post by Native2904 »

This hotkey is burned into my muscle memory by now. :tup:
Lts. 64-bit XY-Port. ƒ JetBrainsMono @ Windows 11 Pro 24H2 ▣ 1920x1080 ⇵ 115%
xytags4tc

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

Re: Open destination folder after moving files

Post by highend »

Then assign it a hotkey via a UDC - Run script...
#220; #521;
One of my scripts helped you out? Please donate via Paypal

Native2904
Posts: 133
Joined: 23 Apr 2025 18:48
Location: Aachen

Re: Open destination folder after moving files

Post by Native2904 »

Thank you highend
To see the attached files, you need to log into the forum.
Lts. 64-bit XY-Port. ƒ JetBrainsMono @ Windows 11 Pro 24H2 ▣ 1920x1080 ⇵ 115%
xytags4tc

Native2904
Posts: 133
Joined: 23 Apr 2025 18:48
Location: Aachen

Re: Open destination folder after moving files

Post by Native2904 »

Hello, I have an additional question — especially for the scripting experts (Jedi).

If you initiate a command sequence like this:

Code: Select all

#220; #340; #521;
and during the confirmation prompt from XY (asking whether you really want to proceed) you realize that you selected the wrong folder and cancel the operation — will #340; #521; still be executed anyway..
How can this be modified so that, if the user answers “No,” steps two and three are not executed?

Thank you in advance
Lts. 64-bit XY-Port. ƒ JetBrainsMono @ Windows 11 Pro 24H2 ▣ 1920x1080 ⇵ 115%
xytags4tc

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

Re: Open destination folder after moving files

Post by highend »

That's not possible, command ids don't have a return value you could check. The only option would be to add a confirm() statement after the first command id but then you would need to always answer that regardless if you confirmed or cancelled the first requester...
One of my scripts helped you out? Please donate via Paypal

Native2904
Posts: 133
Joined: 23 Apr 2025 18:48
Location: Aachen

Re: Open destination folder after moving files

Post by Native2904 »

Okay.
Lts. 64-bit XY-Port. ƒ JetBrainsMono @ Windows 11 Pro 24H2 ▣ 1920x1080 ⇵ 115%
xytags4tc

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

Re: Open destination folder after moving files

Post by admin »

Hold SHIFT while you click on the "Go to Last Target" button and it will open a new tab.

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

Re: Open destination folder after moving files

Post by highend »

One additional option would be this:

Code: Select all

#220; if (<get shift> == 1) { end true; } #521;
If you hold shift when clicking on "OK" in the first requester, all other command ids after it wouldn't be executed...
One of my scripts helped you out? Please donate via Paypal

Native2904
Posts: 133
Joined: 23 Apr 2025 18:48
Location: Aachen

Re: Open destination folder after moving files

Post by Native2904 »

admin wrote: 25 Feb 2026 16:34 Hold SHIFT while you click on the "Go to Last Target" button and it will open a new tab.
Okay, unfortunately I would receive all this command with a single hot key (Alt+g)
Lts. 64-bit XY-Port. ƒ JetBrainsMono @ Windows 11 Pro 24H2 ▣ 1920x1080 ⇵ 115%
xytags4tc

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

Re: Open destination folder after moving files

Post by jupe »

I am not sure which exact confirmation prompt you mean, but maybe something like this could work:

Code: Select all

  $t = <get targetitems>; #220; if ($t != <get targetitems>) { #340; #521; }

Native2904
Posts: 133
Joined: 23 Apr 2025 18:48
Location: Aachen

Re: Open destination folder after moving files

Post by Native2904 »

When I move or copy files (for example, pictures or audio files from the Downloads folder) to a specific folder (such as Pictures or Music) and press the hotkey, XY asks me something like this:

Code: Select all

You have initiated a copy operation.

Selected Item:
  Name:           	Mercy (2026) <DIR>
  Location:       	C:\Users\Home\Downloads\

Recursive Contents:
  Total Count:    	2 files, 1 folder
  Total Bytes:    	2,10 GB (2.258.609.314 bytes)

Source: 	C:\Users\Home\Downloads\
Target: 	Z:\Filme\

Continue with the operation?
Long story short, you nailed it — thank you very, very much.
Lts. 64-bit XY-Port. ƒ JetBrainsMono @ Windows 11 Pro 24H2 ▣ 1920x1080 ⇵ 115%
xytags4tc

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

Re: Open destination folder after moving files

Post by admin »

Untick Configuration | General | Safety Belts, Network | Safety Belts | Confirm copy and move operations if you don't want to see that prompt.

Post Reply