Ctrl-Right click: Path as C-String (Escaped) and with Forward-slashes

Features wanted...
Post Reply
pulp
Posts: 34
Joined: 24 May 2016 20:52

Ctrl-Right click: Path as C-String (Escaped) and with Forward-slashes

Post by pulp »

Hi,

i often need to copy pathes to C++. I would be useful if the Ctrl-Right click menu also offers the path C-String escaped and with forward-slashes instead of backslahes:

"E:\\Path1\\Path2\\file.txt" (\-escaped)
"E:/Path1/Path2/file.txt" (forward-slash


Thanks Jochen

highend
Posts: 14566
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Ctrl-Right click: Path as C-String (Escaped) and with Forward-slashes

Post by highend »

While you wait for it you could use a tiny script in the meantime (and just put it on a keyboard shortcut)...

Code: Select all

"\-escaped"
    copytext replace(<curitem>, "\", "\\");

"forward-slash"
    copytext replace(<curitem>, "\", "/");

One of my scripts helped you out? Please donate via Paypal

pulp
Posts: 34
Joined: 24 May 2016 20:52

Re: Ctrl-Right click: Path as C-String (Escaped) and with Forward-slashes

Post by pulp »

highend wrote:While you wait for it you could use a tiny script in the meantime (and just put it on a keyboard shortcut)...

Code: Select all

"\-escaped"
    copytext replace(<curitem>, "\", "\\");

"forward-slash"
    copytext replace(<curitem>, "\", "/");

Thanks, i will run the scripts from the "open with" menu.

Post Reply