This addition has proved to be useful at what it does. Is there a way to configure it so that it truncates characters from the Left side of a file name? In particular would like to be able to remove numbers that have been prefixed to a name. The goal is to make "084 A music file.mp3" look like this "A music file.mp3".
If it cannot be done with /Cut does the the program provide an alternate convenient way of doing so?
Using /Cut N
-
highend
- Posts: 15016
- Joined: 06 Feb 2011 00:33
- Location: Win Server 2022 @100%
Re: Using /Cut N
Use a regex rename
^[0-9 ]+ > One of my scripts helped you out? Please donate via Paypal
-
jupe
- Posts: 3570
- Joined: 20 Oct 2017 21:14
- Location: Win10 22H2 120dpi
Re: Using /Cut N
To do it with cut it would be
/cut 4,-
autocart
- Posts: 1422
- Joined: 26 Sep 2013 15:22
Re: Using /Cut N
Actually it would be
/cut 5,. Just in that particular example of making "084 A music file.mp3" look like "A music file.mp3", a /cut 4, would also work because leading and trailing spaces are not allowed in file names and therefore truncated automatically.[AHK] redirecting Windows Explorer to XY, [XYS] Mini Tree with open tabs (cur loc expanded, tab folders highlighted), [AHK] customInlineRenameKeys, [AHK] clipboardHelper_and_XYEscToList
-
DixieCup48
- Posts: 117
- Joined: 30 Jan 2018 14:58
Re: Using /Cut N
Thank you to all who took the time to reply
Have not paid much attention to /Cut since it first appeared. Based on your knowledge have now download the PDF file and carefully studied and annotated the topic Shorten Files Names. The tool is such more versatile than it appears at first blush.
Happy XYPlorering ...
Have not paid much attention to /Cut since it first appeared. Based on your knowledge have now download the PDF file and carefully studied and annotated the topic Shorten Files Names. The tool is such more versatile than it appears at first blush.
Happy XYPlorering ...
-
autocart
- Posts: 1422
- Joined: 26 Sep 2013 15:22
Re: Using /Cut N
[AHK] redirecting Windows Explorer to XY, [XYS] Mini Tree with open tabs (cur loc expanded, tab folders highlighted), [AHK] customInlineRenameKeys, [AHK] clipboardHelper_and_XYEscToList
XYplorer Beta Club