How to copy file path with forward slash?

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
Laish
New Member
New Member
Posts: 1
Joined: 2019-05-30, 18:41 UTC

How to copy file path with forward slash?

Post by *Laish »

Hi,

I'm currently using an Hotkey to run the command cm_CopyFullNamesToClip.
In the clipboard the path is set with backslash (i.e c:\dev\file.txt).

I would like to have the path with forward slash (i.e. c:/dev/file.txt), Is there any settings that influence that?

I know i can write a script and put it in the shortcuts bar (something like this https://superuser.com/a/977847) but i want to use the keyboard shortcut to run it.

Does anybody have any idea how to achieve that?

Thank you!
User avatar
Stefan2
Power Member
Power Member
Posts: 4132
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Re: How to copy file path with forward slash?

Post by *Stefan2 »

Hi and welcome Laish.

Instead of into the shortcuts bar (buttonbar) you can write with that commands and parameters a "user defined command" (usercmd.ini),
which you can assign a keyboard shortcut to. (Configuration > Options > Misc.)


To aid you whit your actual task you can try to use an Add-on instead of an own script:
https://totalcmd.net/plugring/list2clip.html

https://www.ghisler.ch/board/viewtopic.php?t=1853


Or just use PowerShell:
viewtopic.php?t=48019


The forum is full with tips and tricks, just search for that keywords....
Post Reply