Context menu - Copy as path


Elisyan

Unknown Member
Member
Local time
10:53 AM
Posts
124
Location
Hell on Earth
OS
Windows 11 Pro
Is there a way to change behavior of what Copy as Path do in context menu?

I mean whenever I use it, it wraps the path in quotes and I don't want the quotes!

What I want is to change Copy as Path to Copy Path in context menu
Is it possible?
 
Windows Build/Version
22621.1992

My Computer

System One

  • OS
    Windows 11 Pro
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom
    CPU
    Intel Core i9 9900K
    Motherboard
    MSI MPG Z390 Gaming Pro Carbon AC
    Memory
    Corsair Vengeance RGB Pro 32GB [ 4 x 8GB ] DDR4 3600MHz CL18
    Graphics Card(s)
    MSI GeForce GTX 1660Ti Ventus XS 6GB OC @ +120/+500
    Monitor(s) Displays
    Samsung Odyssey G7 , 32" , 2560x1440 , VA , 240Hz , 1ms
    Screen Resolution
    QHD 2560x1440
    Hard Drives
    SSD: Samsung 980 Pro 250GB
    HDD: 2x Western Digital Blue 4TB
    PSU
    Cooler Master MWE 550W White
    Case
    Cooler Master MasterCase H500P Mesh ARGB
    Cooling
    DeepCool Gammaxx L360 v2
    Keyboard
    Corsair K95 RGB Platinum ( MX Speed ) [ SteelSeries PrismCaps ]
    Mouse
    Corsair Dark Core RGB Pro SE
    Internet Speed
    16 Mb/s ‌ ‌ | ‌ ‌ 1 Mb/s
    Browser
    Microsoft Edge
    Antivirus
    Windows Security
And how would pasting into a command prompt then be able to cope with a path that includes spaces?
 

My Computers

System One System Two

  • OS
    Windows 11 Home
    Computer type
    Laptop
    Manufacturer/Model
    Acer Aspire 3 A315-23
    CPU
    AMD Athlon Silver 3050U
    Memory
    8GB
    Graphics Card(s)
    Radeon Graphics
    Monitor(s) Displays
    laptop screen
    Screen Resolution
    1366x768 native resolution, up to 2560x1440 with Radeon Virtual Super Resolution
    Hard Drives
    1TB Samsung EVO 870 SSD
    Internet Speed
    50 Mbps
    Browser
    Edge, Firefox
    Antivirus
    Defender
    Other Info
    fully 'Windows 11 ready' laptop. Windows 10 C: partition migrated from my old unsupported 'main machine' then upgraded to 11. A test migration ran Insider builds for 2 months. When 11 was released on 5th October it was re-imaged back to 10 and was offered the upgrade in Windows Update on 20th October. Windows Update offered the 22H2 Feature Update on 20th September 2022. It got the 23H2 Feature Update on 4th November 2023 through Windows Update.

    My SYSTEM THREE is a Dell Latitude 5410, i7-10610U, 32GB RAM, 512GB NVMe ssd, supported device running Windows 11 Pro (and all my Hyper-V VMs).

    My SYSTEM FOUR is a 2-in-1 convertible Lenovo Yoga 11e 20DA, Celeron N2930, 8GB RAM, 256GB ssd. Unsupported device: currently running Win10 Pro, plus Win11 Pro RTM and Insider Beta as native boot vhdx.

    My SYSTEM FIVE is a Dell Latitude 3190 2-in-1, Pentium Silver N5030, 4GB RAM, 512GB NVMe ssd, supported device running Windows 11 Pro, plus the Insider Beta, Dev, and Canary builds as a native boot .vhdx.
  • Operating System
    Windows 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    Dell Lattitude E4310
    CPU
    Intel® Core™ i5-520M
    Motherboard
    0T6M8G
    Memory
    8GB
    Graphics card(s)
    (integrated graphics) Intel HD Graphics
    Screen Resolution
    1366x768
    Hard Drives
    500GB Crucial MX500 SSD
    Browser
    Firefox, Edge
    Antivirus
    Defender
    Other Info
    unsupported machine: Legacy bios, MBR, TPM 1.2, upgraded from W10 to W11 using W10/W11 hybrid install media workaround. In-place upgrade to 22H2 using ISO and a workaround. Feature Update to 23H2 by manually installing the Enablement Package. Also running Insider Beta, Dev, and Canary builds as a native boot .vhdx.

    My SYSTEM THREE is a Dell Latitude 5410, i7-10610U, 32GB RAM, 512GB NVMe ssd, supported device running Windows 11 Pro (and all my Hyper-V VMs).

    My SYSTEM FOUR is a 2-in-1 convertible Lenovo Yoga 11e 20DA, Celeron N2930, 8GB RAM, 256GB ssd. Unsupported device: currently running Win10 Pro, plus Win11 Pro RTM and Insider Beta as native boot vhdx.

    My SYSTEM FIVE is a Dell Latitude 3190 2-in-1, Pentium Silver N5030, 4GB RAM, 512GB NVMe ssd, supported device running Windows 11 Pro, plus the Insider Beta, Dev, and Canary builds as a native boot .vhdx.
You should just try PathCopyCopy, here: Path Copy Copy

It allows you to change settings of what copying the path does.

1690034327737.png
(Image from pathcopycopy.github.io)
 

My Computers

System One System Two

  • OS
    Windows 11 21H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    Chillblast
    CPU
    AMD Ryzen 3 3100
    Motherboard
    Asus ROG Strix b450-f
    Memory
    Corsair 8GB x 2 (16GB)
    Graphics Card(s)
    Asus Nvidia Geforce GTX 1650 Super
    Monitor(s) Displays
    Dell 27" 1440p
    Screen Resolution
    1440p
    Hard Drives
    Seagate Barracuda 1TB
    256GB NVME Seagate Barracuda
    Browser
    Firefox / Edge
    Antivirus
    Windows Defender
  • Operating System
    Windows 8.1
    Computer type
    Laptop
    Manufacturer/Model
    HP
    CPU
    Amd E2
    Memory
    4GB
    Hard Drives
    128GB SSD
And how would pasting into a command prompt then be able to cope with a path that includes spaces?
Sorry, I didn't understand what you said!
 

My Computer

System One

  • OS
    Windows 11 Pro
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom
    CPU
    Intel Core i9 9900K
    Motherboard
    MSI MPG Z390 Gaming Pro Carbon AC
    Memory
    Corsair Vengeance RGB Pro 32GB [ 4 x 8GB ] DDR4 3600MHz CL18
    Graphics Card(s)
    MSI GeForce GTX 1660Ti Ventus XS 6GB OC @ +120/+500
    Monitor(s) Displays
    Samsung Odyssey G7 , 32" , 2560x1440 , VA , 240Hz , 1ms
    Screen Resolution
    QHD 2560x1440
    Hard Drives
    SSD: Samsung 980 Pro 250GB
    HDD: 2x Western Digital Blue 4TB
    PSU
    Cooler Master MWE 550W White
    Case
    Cooler Master MasterCase H500P Mesh ARGB
    Cooling
    DeepCool Gammaxx L360 v2
    Keyboard
    Corsair K95 RGB Platinum ( MX Speed ) [ SteelSeries PrismCaps ]
    Mouse
    Corsair Dark Core RGB Pro SE
    Internet Speed
    16 Mb/s ‌ ‌ | ‌ ‌ 1 Mb/s
    Browser
    Microsoft Edge
    Antivirus
    Windows Security
You should just try PathCopyCopy, here: Path Copy Copy

It allows you to change settings of what copying the path does.

View attachment 65387
(Image from pathcopycopy.github.io)
It would be a lot better if we can do that in new context menu (not the extended menu)
Any other ways to do it?
 

My Computer

System One

  • OS
    Windows 11 Pro
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom
    CPU
    Intel Core i9 9900K
    Motherboard
    MSI MPG Z390 Gaming Pro Carbon AC
    Memory
    Corsair Vengeance RGB Pro 32GB [ 4 x 8GB ] DDR4 3600MHz CL18
    Graphics Card(s)
    MSI GeForce GTX 1660Ti Ventus XS 6GB OC @ +120/+500
    Monitor(s) Displays
    Samsung Odyssey G7 , 32" , 2560x1440 , VA , 240Hz , 1ms
    Screen Resolution
    QHD 2560x1440
    Hard Drives
    SSD: Samsung 980 Pro 250GB
    HDD: 2x Western Digital Blue 4TB
    PSU
    Cooler Master MWE 550W White
    Case
    Cooler Master MasterCase H500P Mesh ARGB
    Cooling
    DeepCool Gammaxx L360 v2
    Keyboard
    Corsair K95 RGB Platinum ( MX Speed ) [ SteelSeries PrismCaps ]
    Mouse
    Corsair Dark Core RGB Pro SE
    Internet Speed
    16 Mb/s ‌ ‌ | ‌ ‌ 1 Mb/s
    Browser
    Microsoft Edge
    Antivirus
    Windows Security
And how would pasting into a command prompt then be able to cope with a path that includes spaces?

I just tried it on a shortcut that had no spaces in the path. The pasted path was wrapped in double quotes. It should only wrap in quotes if there are spaces I would think. I have a tough time believing we are still dealing with the spaces in paths issue since the folder was changed from "Programs" to "Program Files." When was that? Windows 95?
 

My Computers

System One System Two

  • OS
    Windows 10 S Mode (with S disabled)
    Computer type
    Laptop
    Manufacturer/Model
    EV00
    CPU
    Celeron
    Motherboard
    WEIBU
    Memory
    2906 MBytes
    Graphics Card(s)
    LC116LF3L01 (1920x1080@59Hz) Intel HD Graphics (Intel)
    Sound Card
    Realtek High Definition Audio
    Monitor(s) Displays
    11.6" LCD
    Screen Resolution
    1920x1080P
    Hard Drives
    Interface SD
    Capacity 28.8 GB
    Real size 30,937,186,304 bytes
    RAID Type None
    Keyboard
    Integrated Laptop
    Mouse
    USB wired optical
    Internet Speed
    28 Mbs down 35 Mbs up on a good day
    Browser
    Opera/Edge both chromium based
    Antivirus
    none
    Other Info
    I purchased this for $109 because it is the only Laptop I have seen with 1920x1080 resolution for the money. OK for streaming, email, etc..
  • Operating System
    Windows 11 Home 64-bit (22H2 Build 22621.1413)
    Computer type
    Laptop
    Manufacturer/Model
    Lenovo Ideapad 5
    CPU
    AMD K19
    Motherboard
    LNVNB161216 (FP6)
    Memory
    8 GB DDR4
    Graphics card(s)
    AMD Radeon Graphics 2 GB DDR4
    Sound Card
    Realtek High Definition Audio
    Monitor(s) Displays
    Generic PnP Monitor on AMD Radeon Graphics
    Screen Resolution
    2560 x 1600
    Hard Drives
    512 GB SKHynix_HFS512GDE9X084N (SSD)
    Mouse
    has touchpad but I use USB wired optical wheel mouse
    Keyboard
    backlit
    Internet Speed
    100 Mb/s
    Browser
    Edge
    Antivirus
    none
    Other Info
    Windows firewall disabled
Just do Ctrl/Shift/C if you don't want the quotes, but then it's just an Address, not a Path.
 

My Computers

System One System Two

  • OS
    Windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    ASUS ROG Strix
  • Operating System
    Windows 11
    Computer type
    Laptop
    Manufacturer/Model
    ASUS VivoBook
Sorry, I didn't understand what you said!
Example of pasting a path into a command prompt, first without, then with quotes....

1690038971932.png
 

My Computers

System One System Two

  • OS
    Windows 11 Home
    Computer type
    Laptop
    Manufacturer/Model
    Acer Aspire 3 A315-23
    CPU
    AMD Athlon Silver 3050U
    Memory
    8GB
    Graphics Card(s)
    Radeon Graphics
    Monitor(s) Displays
    laptop screen
    Screen Resolution
    1366x768 native resolution, up to 2560x1440 with Radeon Virtual Super Resolution
    Hard Drives
    1TB Samsung EVO 870 SSD
    Internet Speed
    50 Mbps
    Browser
    Edge, Firefox
    Antivirus
    Defender
    Other Info
    fully 'Windows 11 ready' laptop. Windows 10 C: partition migrated from my old unsupported 'main machine' then upgraded to 11. A test migration ran Insider builds for 2 months. When 11 was released on 5th October it was re-imaged back to 10 and was offered the upgrade in Windows Update on 20th October. Windows Update offered the 22H2 Feature Update on 20th September 2022. It got the 23H2 Feature Update on 4th November 2023 through Windows Update.

    My SYSTEM THREE is a Dell Latitude 5410, i7-10610U, 32GB RAM, 512GB NVMe ssd, supported device running Windows 11 Pro (and all my Hyper-V VMs).

    My SYSTEM FOUR is a 2-in-1 convertible Lenovo Yoga 11e 20DA, Celeron N2930, 8GB RAM, 256GB ssd. Unsupported device: currently running Win10 Pro, plus Win11 Pro RTM and Insider Beta as native boot vhdx.

    My SYSTEM FIVE is a Dell Latitude 3190 2-in-1, Pentium Silver N5030, 4GB RAM, 512GB NVMe ssd, supported device running Windows 11 Pro, plus the Insider Beta, Dev, and Canary builds as a native boot .vhdx.
  • Operating System
    Windows 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    Dell Lattitude E4310
    CPU
    Intel® Core™ i5-520M
    Motherboard
    0T6M8G
    Memory
    8GB
    Graphics card(s)
    (integrated graphics) Intel HD Graphics
    Screen Resolution
    1366x768
    Hard Drives
    500GB Crucial MX500 SSD
    Browser
    Firefox, Edge
    Antivirus
    Defender
    Other Info
    unsupported machine: Legacy bios, MBR, TPM 1.2, upgraded from W10 to W11 using W10/W11 hybrid install media workaround. In-place upgrade to 22H2 using ISO and a workaround. Feature Update to 23H2 by manually installing the Enablement Package. Also running Insider Beta, Dev, and Canary builds as a native boot .vhdx.

    My SYSTEM THREE is a Dell Latitude 5410, i7-10610U, 32GB RAM, 512GB NVMe ssd, supported device running Windows 11 Pro (and all my Hyper-V VMs).

    My SYSTEM FOUR is a 2-in-1 convertible Lenovo Yoga 11e 20DA, Celeron N2930, 8GB RAM, 256GB ssd. Unsupported device: currently running Win10 Pro, plus Win11 Pro RTM and Insider Beta as native boot vhdx.

    My SYSTEM FIVE is a Dell Latitude 3190 2-in-1, Pentium Silver N5030, 4GB RAM, 512GB NVMe ssd, supported device running Windows 11 Pro, plus the Insider Beta, Dev, and Canary builds as a native boot .vhdx.

My Computer

System One

  • OS
    Windows 11 Pro
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom
    CPU
    Intel Core i9 9900K
    Motherboard
    MSI MPG Z390 Gaming Pro Carbon AC
    Memory
    Corsair Vengeance RGB Pro 32GB [ 4 x 8GB ] DDR4 3600MHz CL18
    Graphics Card(s)
    MSI GeForce GTX 1660Ti Ventus XS 6GB OC @ +120/+500
    Monitor(s) Displays
    Samsung Odyssey G7 , 32" , 2560x1440 , VA , 240Hz , 1ms
    Screen Resolution
    QHD 2560x1440
    Hard Drives
    SSD: Samsung 980 Pro 250GB
    HDD: 2x Western Digital Blue 4TB
    PSU
    Cooler Master MWE 550W White
    Case
    Cooler Master MasterCase H500P Mesh ARGB
    Cooling
    DeepCool Gammaxx L360 v2
    Keyboard
    Corsair K95 RGB Platinum ( MX Speed ) [ SteelSeries PrismCaps ]
    Mouse
    Corsair Dark Core RGB Pro SE
    Internet Speed
    16 Mb/s ‌ ‌ | ‌ ‌ 1 Mb/s
    Browser
    Microsoft Edge
    Antivirus
    Windows Security
Just do Ctrl/Shift/C if you don't want the quotes, but then it's just an Address, not a Path.
I know about the shortcuts, wanted to know if we can change the context menu too

I didn't know the difference between Address and Path
 

My Computer

System One

  • OS
    Windows 11 Pro
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom
    CPU
    Intel Core i9 9900K
    Motherboard
    MSI MPG Z390 Gaming Pro Carbon AC
    Memory
    Corsair Vengeance RGB Pro 32GB [ 4 x 8GB ] DDR4 3600MHz CL18
    Graphics Card(s)
    MSI GeForce GTX 1660Ti Ventus XS 6GB OC @ +120/+500
    Monitor(s) Displays
    Samsung Odyssey G7 , 32" , 2560x1440 , VA , 240Hz , 1ms
    Screen Resolution
    QHD 2560x1440
    Hard Drives
    SSD: Samsung 980 Pro 250GB
    HDD: 2x Western Digital Blue 4TB
    PSU
    Cooler Master MWE 550W White
    Case
    Cooler Master MasterCase H500P Mesh ARGB
    Cooling
    DeepCool Gammaxx L360 v2
    Keyboard
    Corsair K95 RGB Platinum ( MX Speed ) [ SteelSeries PrismCaps ]
    Mouse
    Corsair Dark Core RGB Pro SE
    Internet Speed
    16 Mb/s ‌ ‌ | ‌ ‌ 1 Mb/s
    Browser
    Microsoft Edge
    Antivirus
    Windows Security
Just do Ctrl/Shift/C if you don't want the quotes, but then it's just an Address, not a Path.
Lost me there. On my stock Windows 11, Ctrl-Shift-C is just the keyboard shortcut for Copy as path and that always includes quotes.

Anyhow, I can't see the problem with the feature always including quotes. A path without spaces doesn't need quotes, but it doesn't do any harm. Maybe the OP is just pasting the paths into a list and doesn't like the quotes, but hey, that's what text editors are for.
 

My Computer

System One

  • OS
    Windows 10/11
    Computer type
    Laptop
    Manufacturer/Model
    Acer
Lost me there. On my stock Windows 11, Ctrl-Shift-C is just the keyboard shortcut for Copy as path and that always includes quotes.

Anyhow, I can't see the problem with the feature always including quotes. A path without spaces doesn't need quotes, but it doesn't do any harm. Maybe the OP is just pasting the paths into a list and doesn't like the quotes, but hey, that's what text editors are for.

It is lazy programming. If there is whitespace in the path wrap double quotes around it. Otherwise leave it alone. Way simple.
 

My Computers

System One System Two

  • OS
    Windows 10 S Mode (with S disabled)
    Computer type
    Laptop
    Manufacturer/Model
    EV00
    CPU
    Celeron
    Motherboard
    WEIBU
    Memory
    2906 MBytes
    Graphics Card(s)
    LC116LF3L01 (1920x1080@59Hz) Intel HD Graphics (Intel)
    Sound Card
    Realtek High Definition Audio
    Monitor(s) Displays
    11.6" LCD
    Screen Resolution
    1920x1080P
    Hard Drives
    Interface SD
    Capacity 28.8 GB
    Real size 30,937,186,304 bytes
    RAID Type None
    Keyboard
    Integrated Laptop
    Mouse
    USB wired optical
    Internet Speed
    28 Mbs down 35 Mbs up on a good day
    Browser
    Opera/Edge both chromium based
    Antivirus
    none
    Other Info
    I purchased this for $109 because it is the only Laptop I have seen with 1920x1080 resolution for the money. OK for streaming, email, etc..
  • Operating System
    Windows 11 Home 64-bit (22H2 Build 22621.1413)
    Computer type
    Laptop
    Manufacturer/Model
    Lenovo Ideapad 5
    CPU
    AMD K19
    Motherboard
    LNVNB161216 (FP6)
    Memory
    8 GB DDR4
    Graphics card(s)
    AMD Radeon Graphics 2 GB DDR4
    Sound Card
    Realtek High Definition Audio
    Monitor(s) Displays
    Generic PnP Monitor on AMD Radeon Graphics
    Screen Resolution
    2560 x 1600
    Hard Drives
    512 GB SKHynix_HFS512GDE9X084N (SSD)
    Mouse
    has touchpad but I use USB wired optical wheel mouse
    Keyboard
    backlit
    Internet Speed
    100 Mb/s
    Browser
    Edge
    Antivirus
    none
    Other Info
    Windows firewall disabled

Latest Support Threads

Back
Top Bottom