batch file rename

Status
Not open for further replies.

avatar2

Estimable
Jul 8, 2014
1
0
4,510
i want a script that will rename a series of files name like 012345.txt 012346.txt 0123457.txt and so on.they are located in the c drive in a folder name code .
i receive this file from a server and i hav to send them to another server but the application suport only 5 characters as a name.
i already wrote 3 differents scripts that save the files in another folder and the second script rename them but when renaming instead of deleting the 1st number it replace it by space which is considering as a character and the third script send them to the application. so i want the second script that will delete directly the 1st number and not replacing it.
 

avarice

Distinguished
May 10, 2006
13
0
18,570
A fairly simple way of doing this is to get a list of all your files into a spreadsheet like excel.

Use a formula to remove characters from the name in the column of names.

Then use the concatenate command to create a proper dos string command.

copy the string to the command line or create a batch file.
 

Pinhedd

Distinguished
Moderator


I used this utility once, it worked pretty well.

http://www.bulkrenameutility.co.uk/Main_Intro.php

It is freeware, but I won't vouch for it being clean or anything.
 
Status
Not open for further replies.