Open with user command no longer working

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 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.

: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:
admin
Site Admin
Posts: 65009
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Open with user command no longer working

Post by admin »

Renaming? I thought this is about opening.

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

Re: Open with user command no longer working

Post by highend »

No, his hash command renames selected files with the hash it has calculated for them an it's true, it does work with
Configuration | Other | Shell Integration | 64-bit Windows | [ ] Open files from 64-bit process

but it doesn't work when ticked and it doesn't work in XYTB
One of my scripts helped you out? Please donate via Paypal

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

Re: Open with user command no longer working

Post by admin »

Which version on https://www.mensinmotus.com/hash/hash.html did you try?

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

Re: Open with user command no longer working

Post by highend »

Emh...

v1.70

I just found out that the x64 version works in XYTB as it should, I thought it weren't but the issue is that the list just didn't get refreshed after hash was done (autorefresh is ofc ticked).

Regarding the non-TB version:
The x32 and x64 versions of hash both move the renamed files into the root folder of XYTB (didn't try if it would fail if it is an installed XY version though) when
Configuration | Other | Shell Integration | 64-bit Windows | [x] Open files from 64-bit process
is used
One of my scripts helped you out? Please donate via Paypal

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

Re: Open with user command no longer working

Post by admin »

highend wrote: 08 Jul 2025 09:29 Regarding the non-TB version:
The x32 and x64 versions of hash both move the renamed files into the root folder of XYTB (didn't try if it would fail if it is an installed XY version though) when
Configuration | Other | Shell Integration | 64-bit Windows | [x] Open files from 64-bit process
is used
Confirmed. However, since Hash.exe handles the renaming, the issue should be addressed there.

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

Re: Open with user command no longer working

Post by admin »

highend wrote: 08 Jul 2025 09:29 I just found out that the x64 version works in XYTB as it should, I thought it weren't but the issue is that the list just didn't get refreshed after hash was done (autorefresh is ofc ticked).
Can't confirm. Refresh works fine here. Every time.

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

Re: Open with user command no longer working

Post by highend »

Fresh TB instance, only changes:
Configuration | Other | Features | [x] User-Defined Commands

and adding the user defined command for hash:
Animation.gif
Animation.gif (577.39 KiB) Viewed 3931 times
One of my scripts helped you out? Please donate via Paypal

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

Re: Open with user command no longer working

Post by admin »

Okay, I only checked Win8.1. I'll look into Win11 later.

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

Re: Open with user command no longer working

Post by admin »

Tested on Win11. Also works just fine.

By the way, the definition does not require <selitems>. In fact, it leads to unnecessary work.

Sander Bouwhuis
Posts: 245
Joined: 10 Jun 2008 15:40
Location: Netherlands

Re: Open with user command no longer working

Post by Sander Bouwhuis »

How would my application work without <selitems>? That seems impossible. When I select one or more files/directories in a directory and call my Hash.exe application, how would my application know which files and/or directories to handle?
(\__/)
(='.'=) This is Bunny. Copy and paste bunny into
(")_(") your signature to help him gain world domination.

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

Re: Open with user command no longer working

Post by highend »

The selected files are passed as space separated, double quoted arguments to your application
And that happens because you've used the mode "Single instance" in your UDC command for it

E.g. calling it with a command line tool that shows its arguments you'd get this output:

Code: Select all

Argument(s) count
=================
4

Full command line
=================
"D:\Temp\!test.zip" "D:\Temp\@TUI.zip" "D:\Temp\1 KB.txt" "D:\Temp\1 MB.txt"

Single argument(s) [double quotes removed]
==========================================
01: D:\Temp\!test.zip
02: D:\Temp\@TUI.zip
03: D:\Temp\1 KB.txt
04: D:\Temp\1 MB.txt
And that's only by using this "Application" without <selitems>:
"D:\Show command line arguments [GUI version].exe"
One of my scripts helped you out? Please donate via Paypal

Post Reply