Hallo,
kann ich irgendwo einstellen, dass cm_CopyFullNamesToClip statt \ als Pfadtrenner / verwendet?
Ich programmiere viel in C# und Python und mit / könnte ich die Pfade dort direkt einfügen ... momentan muss ich entweder manuell alle \ durch / oder \\ ersetzen.
Vielen Dank!
jtb
Pfad kopieren: "/" statt "\"
Moderators: Stefan2, white, Hacker
cm_CopyFullNamesToClip: Pfad kopieren Unix Schrägstrich
Hallo und willkommen!
oder mittels eines Skriptes (Batch, VBS, AutoHotkey, PoSh), zB mit Powershell:
TC Button Setting
CMD : [face=timesnewroman]PowerShell[/face]
PARA: [face=timesnewroman]TYPE '%L' | Foreach{$_ -Replace [regex]::escape('\'), '/'} | clip[/face]
(NOTE: %F = file names only, %L = path\filename. Press F1 key for more)
- - -
Test:
- Select e.g. c:\Program Files\Windows Media Player\en-US\mpvis.dll.mui
- Execute the command
- Result is: C:/Program Files/Windows Media Player/en-US/mpvis.dll.mui (string is copied to clipboard)
- - -
Im Forum gibt es noch mehr Beispiele...
- - -
Find me:
Copy selected files to clipboard by replacing parts of the name.
Copy selected files to clipboard by exchanging back slash to forward slash (unix or ftp style)
Nicht im TC direkt, aber z.B. mit Plugins (zB Lst2Clip.exe)jtb wrote:kann ich irgendwo einstellen, dass cm_CopyFullNamesToClip statt \ als Pfadtrenner / verwendet?
oder mittels eines Skriptes (Batch, VBS, AutoHotkey, PoSh), zB mit Powershell:
TC Button Setting
CMD : [face=timesnewroman]PowerShell[/face]
PARA: [face=timesnewroman]TYPE '%L' | Foreach{$_ -Replace [regex]::escape('\'), '/'} | clip[/face]
(NOTE: %F = file names only, %L = path\filename. Press F1 key for more)
- - -
Test:
- Select e.g. c:\Program Files\Windows Media Player\en-US\mpvis.dll.mui
- Execute the command
- Result is: C:/Program Files/Windows Media Player/en-US/mpvis.dll.mui (string is copied to clipboard)
- - -
Im Forum gibt es noch mehr Beispiele...
- - -
Find me:
Copy selected files to clipboard by replacing parts of the name.
Copy selected files to clipboard by exchanging back slash to forward slash (unix or ftp style)