"Send to" context menu invalid entries

Things you’d like to miss in the future...
Forum rules
You might want to read this if you're looking for priority service

: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: Use Your Profile Or Signature
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: How To Attach Images
When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".
Post Reply
tedy
Posts: 323
Joined: 17 Jun 2009 21:48

"Send to" context menu invalid entries

Post by tedy »

Just tried to use Send_to context menu for a file (haven't been using this menu for long) and send it to EmEditor (or other apps) and I got Non existing executable (C:\Program Files (x86)\Emeditor......), the same with WinHEX etc.
Yes, they don't exist in C:\Program Files (x86)\... but in C:\Program Files\...., e.g. they are 64 bit. I don't remember if I used 32 bit versions of these before.
In Explorer the context menu is right, they open the (normal, existing) 64 bit apps.
Is this a bug or where do I find the "32 bit sendto" (if there is such thing) to put my real shortcuts there?

Not using the "64 bit context menu" inside XY for few reasons.

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

Re: "Send to" context menu invalid entries

Post by admin »

Works fine here (I use EmEditor myself). Maybe something is wrongly registered, registry remnants from earlier times...

tedy
Posts: 323
Joined: 17 Jun 2009 21:48

Re: "Send to" context menu invalid entries

Post by tedy »

My Windows installation is less than a year old. I think I've never installed 32 bit versions of most programs I see in Send To. Yet, XY tries to open program files (x86) versions...
In Windows Explorer it all works right. I thought XY "gets" the items for its Send To context submenu from the same place as WE?!
C:\Users\[username]\AppData\Roaming\Microsoft\Windows\SendTo

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

Re: "Send to" context menu invalid entries

Post by admin »

I have no direct control over that menu. This is provided by Windows as is. :|

tedy
Posts: 323
Joined: 17 Jun 2009 21:48

Re: "Send to" context menu invalid entries

Post by tedy »

I just added a shortcut to another program in the above location - the notepad2-mod editor, located in C:\Program Files\Notepad2-mod\Notepad2.exe.
It appeared right away in XY (and WExplorer) but XY still tries to open C:\Program Files (x86)\Notepad2-mod\Notepad2.exe.

How's that..
I've never had notepad2-mod installed in (x86).

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

Re: "Send to" context menu invalid entries

Post by admin »

OK, so that shortcut was wrongly constructed. This is a common error among many shortcut constructing applications. Most (incl XYplorer) use a Windows API function to do this and there is the error: They use the wrong environment variable to refer to the Programs folder. They use %ProgramFiles% but they should use %ProgramW6432%. Only the latter points to the 64-bit ProgramFiles folder independently of the bitness of the process they are running in.

tedy
Posts: 323
Joined: 17 Jun 2009 21:48

Re: "Send to" context menu invalid entries

Post by tedy »

Ok, what can I do to fix this then?
This is the shortcut properties window, all looks good to me, no env vars here.
I used WIndows Explorer to create the shortcut - Copy on the real exe, then in the above location -> right click - paste as shortcut.
shortcutnotepad2.png
To see the attached files, you need to log into the forum.

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

Re: "Send to" context menu invalid entries

Post by admin »

Good question!

Let's first verify that I'm right. When you Raw View that LNK (C:\Users\%username%\AppData\Roaming\Microsoft\Windows\SendTo\EmEditor.lnk) with "Extract Text" ticked, what do you see?
In my case it's hard-coded to "C:\Program Files\EmEditor\EmEditor.exe", no environment variables used, no problems.
To see the attached files, you need to log into the forum.

tedy
Posts: 323
Joined: 17 Jun 2009 21:48

Re: "Send to" context menu invalid entries

Post by tedy »

Hm... It seems maybe it's the way XY enumerates/uses the SendTo folder.
When I open the location in XY, almost all my (custom) shortcuts were with generic icons. Except EmEditor (which isn't working as well).
What I see with Emeditor shortcut selected is attached. But Raw View for Notepad2 was lacking the %ProgramFiles% var and line altogether, only one line with path to the exe and it wasn't working too.
On the screenshot Notepad2 is already seen with its real icon after I tested something - I pasted (as shortcut) the notepad2.exe executable right within XY, and not in WExplorer (as before).
Now Notepad2 works and Raw View shows the same info as before when it wasn't working. Strange what was the difference..

I got used to use Explorer when doing such more "system" things that can involve system folders because XY is 32 bit and I had problems before when working with certain system folders. Not being a 64 bit app creates numerous headaches.
I guess I'll recreate shortcuts from within XY to make them usable :) .
rawviewemeditor.png
To see the attached files, you need to log into the forum.

Post Reply