batch file rename

Status
Not open for further replies.

avatar2

Estimable
Jul 8, 2014
1
0
4,510
0
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
3
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.
Thread starter Similar threads Forum Replies Date
David___Only Apps General Discussion 0
S Apps General Discussion 4
M Apps General Discussion 3
D Apps General Discussion 2
N Apps General Discussion 1
NoctisLionward Apps General Discussion 2
malavena Apps General Discussion 3
Tom Waller Apps General Discussion 2
P Apps General Discussion 1
S Apps General Discussion 4
A Apps General Discussion 13
Z Apps General Discussion 1
P Apps General Discussion 7
G Apps General Discussion 0
T Apps General Discussion 5
M Apps General Discussion 3
deadmuse Apps General Discussion 1
U Apps General Discussion 1
C Apps General Discussion 5
H Apps General Discussion 9

ASK THE COMMUNITY

TRENDING THREADS