How to copy file path with forward slash?

English support forum

Moderators: Stefan2, white, sheep, Hacker

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 » 2019-05-30, 18:49 UTC

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: 2584
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Re: How to copy file path with forward slash?

Post by *Stefan2 » 2019-05-30, 18:59 UTC

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

viewtopic.php?t=1853


Or just use PowerShell:
https://ghisler.ch/board/viewtopic.php?t=48019


The forum is full with tips and tricks, just search for that keywords....
Inofficial FAQs || WIKI (Deu/Eng) || TC Home (What's new? // FAQ // Download // Order // Addons // Tools // Plugins)
Erst wenn der letzte Baum gefällt oder die letzte Biene verendet ist, werden die Leute verstehen warum Umweltschutz wichtig ist.

Post Reply