Incorrect working directory with context menu entries

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
wraithdu
Posts: 27
Joined: 17 Apr 2008 07:51

Incorrect working directory with context menu entries

Post by wraithdu »

XYplorer seems to set an incorrect working directory when launching context menu shorcuts. Easy to reproduce -

1. in regedit create a new key under HKCR\*\Shell called "test"
2. create another key under that called "command"
3. set the default value of the "command" key to simply "cmd"

Right-click any file in Windows Explorer and choose "test". It should open a command window with the current directory set to the location of your file (type "cd" to verify).

Now try it in XYplorer and the directory that opens is "C:\Program Files\XYplorer". Obviously this is not good for programs that expect a specific working directory when launched via context menu.

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

Re: Incorrect working directory with context menu entries

Post by admin »

Confirmed, interesting! I don't see a quick fix for this right now... needs some research...

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

Re: Incorrect working directory with context menu entries

Post by admin »

admin wrote:Confirmed, interesting! I don't see a quick fix for this right now... needs some research...
Okay, fixed! 8)

wraithdu
Posts: 27
Joined: 17 Apr 2008 07:51

Post by wraithdu »

Thanks!

Post Reply