When i use cm_CopyFullNamesToClip on a directory i obtain
c:\one\two\
to it is possible to obtain instead more used
c:\one\two
?
cm_CopyFullNamesToClip without final slash
Moderators: Hacker, petermad, Stefan2, white
- Vochomurka
- Power Member
- Posts: 816
- Joined: 2005-09-14, 22:19 UTC
- Location: Russia
- Contact:
Single user license #329241
PowerPro scripts for Total Commander
PowerPro scripts for Total Commander
AutoHotkey script (parameter %L):
Code: Select all
Loop, read, %1%
{
Current_String = %A_LoopReadLine%
StringRight, Right_Simbol, Current_String, 1
If Right_Simbol = \
If ( %2% = TrimSlash OR %2% = ts )
StringTrimRight, Current_String, Current_String, 1
If My_List =
My_List = %Current_String%
Else
My_List = %My_List%`n%Current_String%
}
clipboard = %My_List%
http://www.totalcmd.net/plugring/list2clip.html
Holger
Regards... The backslash at the end of the path can be omitted. ...
Holger