I need to rename files in some folders, as explained in the number of X characters and last characters that I set somebody to show me how to do this?
Here you can go:
@hoho of catalocol enabled Expanded set X = 3 set FOLDER_PATH =. Set Push% FOLDER_PATH% if %% f neq% ~ nx0 (set "filename = %% ~ nf" to %% f (*) "filename =! Filename: ~% x%, -% X% ! "Ren" %% f "" Filename! %% ~ xf ") popd This enters the script folder (specified by FOLDER_PATH ) And before and after the last trim, the file name to X character (except its extension) must be X and Modify FOLDER_PATH
Comments
Post a Comment