Page 2 of 2

Re: Open with user command no longer working

Posted: 08 Jul 2025 08:56
by admin
Renaming? I thought this is about opening.

Re: Open with user command no longer working

Posted: 08 Jul 2025 09:06
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

Re: Open with user command no longer working

Posted: 08 Jul 2025 09:15
by admin
Which version on https://www.mensinmotus.com/hash/hash.html did you try?

Re: Open with user command no longer working

Posted: 08 Jul 2025 09:29
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

Re: Open with user command no longer working

Posted: 08 Jul 2025 10:03
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.

Re: Open with user command no longer working

Posted: 08 Jul 2025 10:16
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.

Re: Open with user command no longer working

Posted: 08 Jul 2025 10:34
by highend
Fresh TB instance, only changes:
Configuration | Other | Features | [x] User-Defined Commands

and adding the user defined command for hash:
Animation.gif

Re: Open with user command no longer working

Posted: 08 Jul 2025 11:05
by admin
Okay, I only checked Win8.1. I'll look into Win11 later.

Re: Open with user command no longer working

Posted: 08 Jul 2025 12:22
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.

Re: Open with user command no longer working

Posted: 11 Jul 2025 20:57
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?

Re: Open with user command no longer working

Posted: 11 Jul 2025 21:31
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"