mirror of
https://github.com/clechasseur/pathcopycopy.git
synced 2026-04-25 20:25:54 +03:00
[GH-ISSUE #65] Environment variables #64
Labels
No labels
bug
duplicate
enhancement
enhancement
enhancement
fixed
help wanted
help wanted
invalid
pull-request
question
waiting for input
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/pathcopycopy#64
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Inesicen on GitHub (May 4, 2019).
Original GitHub issue: https://github.com/clechasseur/pathcopycopy/issues/65
Originally assigned to: @clechasseur on GitHub.
How can I copy paths with environment variables like
%PROGRAMFILES(x86)%and%USERPROFILE%?@clechasseur commented on GitHub (May 4, 2019):
I'm not sure I understand. Where exactly would you be copying those paths? Do you mean you want to copy a path and replace part of it with an environment variable?
@blackcrack commented on GitHub (May 4, 2019):
@clechasseur

second ...
.....
open cmd :
echo %PROGRAMFILES(x86)% >> blead.txt , open it with notepad3 and copy it ..
this is a possible way..
but we are not a support forum ..
@clechasseur commented on GitHub (May 4, 2019):
Ok… but Path Copy Copy is not used at all in your example… which is basically what prompted my initial question :-)
@Inesicen commented on GitHub (May 5, 2019):
If I am copying a path for which an environment variable exists, I would like to be able to copy the path with the variable.
@clechasseur commented on GitHub (May 5, 2019):
Interesting idea. But how would be proceed if multiple environment variables exist for the path? Do we go alphabetically?
@blackcrack commented on GitHub (May 5, 2019):
humm..
"[if included %PROGRAMFILES(x86)% == %PROGRAMFILES(x86)%]
copy "%PROGRAMFILES(x86)%\path\blabla, "
else
\path\blabla (or C:\path\blabla)
"
something in this direction, could be not a bad idea... :) 👍
"Copy path with Enviroment Variable" (if variable exist)"
@clechasseur commented on GitHub (Jan 7, 2020):
Looks like this is what we want:
https://docs.microsoft.com/en-us/windows/win32/api/shlwapi/nf-shlwapi-pathunexpandenvstringsw
@clechasseur commented on GitHub (Jan 9, 2020):
This has been implemented as a custom command element in the next major release (tentatively 18.0).
@Inesicen commented on GitHub (Jan 29, 2020):
Thank you; I just note that
%ProgramFiles% (x86)should be%ProgramFiles(x86)%.@clechasseur commented on GitHub (Jan 29, 2020):
Is that something from this issue or did you really see this being replaced by the custom command element? If the latter, you can enter a separate bug and I will look at it.