Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > alt.comp.os.windows-10 > #188847

Re: Tutorial: Add "Copy path to clipboard" into the rightclick file explorer context menu when saving files

From Marion <mariond@facts.com>
Newsgroups alt.comp.os.windows-10, alt.comp.os.windows-11, alt.comp.microsoft.windows
Subject Re: Tutorial: Add "Copy path to clipboard" into the rightclick file explorer context menu when saving files
Date 2025-10-27 13:51 -0600
Organization BWH Usenet Archive (https://usenet.blueworldhosting.com)
Message-ID <10doiga$2gqv$1@nnrp.usenet.blueworldhosting.com> (permalink)
References <10dn31k$2ltj$1@nnrp.usenet.blueworldhosting.com> <10dns58$1minp$1@solani.org> <10dofcu$22ak$1@nnrp.usenet.blueworldhosting.com> <mm9u5uFa7f0U1@mid.individual.net>

Cross-posted to 3 groups.

Show all headers | View raw


Andy Burns wrote:
>> Is "copy as path" in everyone's right click context menu when they are in
>> the middle of saving a file
> 
> Yes.  I too was surprised to see you suggesting 'adding' a feature that 
> already existed

Hi Andy,

I didn't take the other two posters seriously as they're always trying to
prove their supposed superiority, which this isn't a contest of nor for.

They never add. 
They subtract.
So my response to them is completely different than my response to you.

This is about additive learning. 
And additive capability.

I respect you.
I respect your knowledge.
You've taught me a lot over the years.
And, almost always, you've been right when you've done that.

So, maybe there's something that I don't know. 
Which I welcome if you can teach it to me.

I believe you that what you claim exists, but I think we may not both be
talking about the same GUI since there are three Windows GUIs involved.

For lack of a better name, I'll refer to the three different GUIs as... 
1. Old App GUI, aka the Common Dialog Box (Win32)
2. Normal GUI, aka the Explorer-style Common Item Dialog
3. Modern App GUI, aka the FileOpenPicker/FileSavePicker/FolderPicker

Modern apps like IrfanView often use the FileOpenPicker, FileSavePicker, or
FolderPicker classes from the Windows.Storage.Pickers namespace. These
pickers are designed to be lightweight, secure and sandbox-friendly,
especially for apps running with limited permissions.
 <https://github.com/microsoft/WindowsAppSDK/issues/1188>

That design choice limits certain features like copying the full file path
(to maintain consistency and security across devices and app types).
 <https://learn.microsoft.com/en-us/windows/uwp/files/quickstart-using-file-and-folder-pickers>

Please look closely at this screenshot which shows where I'm looking.
 <https://i.postimg.cc/QxB1MwgM/Irfanview-File-Browse-GUI.jpg>
That is using the Windows Runtime / WinRT API used by modern apps which
was introduced in Windows 8, but it doesn't have a full-path copy (AFAIK).

That screenshot was taken moments before saving the file using any modern
app such as Irfanview is, so it may be very important to note that the
browsing GUI is NOT the same as in the File Explorer browsing GUI.

Before Windows 8, the "old GUI" used the Win32 GetOpenFileName or
GetSaveFileName which was introduced way back in the Windows 3.x era.

But modern apps such as Irfanview use the newer FileOpenPicker or
FileSavePicker found in the Windows Runtime / WinRT API. 

This is DIFFERENT from the Explorer-style Common Item Dialog which uses
IFileDialog calls (specifically IFileOpenDialog & IFileSaveDialog).

So maybe we're talking about two different GUIs?

These other two browsing GUIs are completely different in how the context
menu works (ask me how I know that) in that not all registry hacks work.

Of course, there is overlap in the two file browsing GUIs, but the ability
to save the path does not seem to be included in that browser GUI overlap.

There's a lot more overlap in the rightclick context menu, but even that
overlap isn't 100% as you can see they're not the same in this shot below.
 <https://i.postimg.cc/tJVBjT2D/Two-File-Browser-Right-Click-Menus.jpg>

Since you DO know Windows better than I do, I wonder if the disconnect is
you're thinking I'm using the Windows native File Browser GUI?

I'm not (although these registry tweaks certainly work for the native
Windows File Browser GUI also, but it's easy to get the path there).

I'm talking about the 'special purpose' GUI (for lack of a better name)
that pops up only when you use a modern app's "File > Save as..." menus.

To clarify which GUI this tutorial pertains to, can you do all of us a
favor and run the same test I had suggested Rudy & MikeS run for us?
1. Open an image in Irfanview & use the "Save as" dialog to save it.
    Irfanview:File > Save as.. 
2. I created a long hierarchy for the testcase but use any path you like.
   C:\tmp\tmp2\tmp3\...\tmp10\image.jpg
3. After you are done navigating, but just before you save the image,
   where does what you say exists, exist in that subsequent file browser?
   <https://i.postimg.cc/QxB1MwgM/Irfanview-File-Browse-GUI.jpg>

Please let me know as maybe I'm doing something wrong and maybe these
registry tweaks didn't need to be made to add the functionality added.
-- 
I am not here for my ego; nor for my amusement; but to teach & learn.

Back to alt.comp.os.windows-10 | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Tutorial: Add "Copy path to clipboard" into the rightclick file explorer context menu when saving files Marion <mariond@facts.com> - 2025-10-27 00:21 -0600
  Re: Tutorial: Add "Copy path to clipboard" into the rightclick file explorer context menu when saving files "R.Wieser" <address@is.invalid> - 2025-10-27 11:13 +0100
    Re: Tutorial: Add "Copy path to clipboard" into the rightclick file explorer context menu when saving files Marion <mariond@facts.com> - 2025-10-27 13:14 -0600
      Re: Tutorial: Add "Copy path to clipboard" into the rightclick file explorer context menu when saving files "R.Wieser" <address@is.invalid> - 2025-10-27 23:07 +0100
        Re: Tutorial: Add "Copy path to clipboard" into the rightclick file explorer context menu when saving files Marion <mariond@facts.com> - 2025-10-27 19:34 -0600
  Re: Tutorial: Add "Copy path to clipboard" into the rightclick file explorer context menu when saving files MikeS <mikes@is.invalid> - 2025-10-27 13:30 +0000
    Re: Tutorial: Add "Copy path to clipboard" into the rightclick file explorer context menu when saving files Marion <mariond@facts.com> - 2025-10-27 12:58 -0600
      Re: Tutorial: Add "Copy path to clipboard" into the rightclick file explorer context menu when saving files Andy Burns <usenet@andyburns.uk> - 2025-10-27 19:06 +0000
        Re: Tutorial: Add "Copy path to clipboard" into the rightclick file explorer context menu when saving files Marion <mariond@facts.com> - 2025-10-27 13:51 -0600
          Re: Tutorial: Add "Copy path to clipboard" into the rightclick file explorer context menu when saving files Herbert Kleebauer <klee@unibwm.de> - 2025-10-27 22:11 +0100
            Re: Tutorial: Add "Copy path to clipboard" into the rightclick file explorer context menu when saving files Marion <mariond@facts.com> - 2025-10-27 18:56 -0600
          Re: Tutorial: Add "Copy path to clipboard" into the rightclick file explorer context menu when saving files Andy Burns <usenet@andyburns.uk> - 2025-10-27 22:05 +0000
            Re: Tutorial: Add "Copy path to clipboard" into the rightclick file explorer context menu when saving files Marion <mariond@facts.com> - 2025-10-27 19:12 -0600
  Re: Tutorial: Add "Copy path to clipboard" into the rightclick file explorer context menu when saving files Marion <mariond@facts.com> - 2025-10-29 11:48 -0600

csiph-web