Computing.Net > Forums > Windows NT > Files rename using batch file

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Files rename using batch file

Reply to Message Icon

Name: Egy
Date: February 19, 2008 at 07:11:38 Pacific
OS: Windows XP
CPU/Ram: pentuim
Product: 123456789
Comment:

I would like to rename numbers of files as following:
from test1.test1.txt --TO-- test1.test1-abc.txt
How can I rename this files name using bactch file?
Thank you,




Sponsored Link
Ads by Google

Response Number 1
Name: worky
Date: February 21, 2008 at 19:15:45 Pacific
Reply:

I am not exactly sure what you mean but I can give you this example.

The follow command:
ren test?.test?.txt test?.test?-abc.txt

would rename these 3 files
test1.test1.txt
test2.test2.txt
test3.test3.txt

to

test1.test1-abc.txt
test2.test2-abc.txt
test3.test3-abc.txt


0
Reply to Message Icon

Related Posts

See More






Use following form to reply to current message:

Login or Register to Reply
LoginRegister


Sponsored links

Ads by Google


Results for: Files rename using batch file

Batch Files www.computing.net/answers/windows-nt/batch-files/4988.html

Batch file to Delete Old Files www.computing.net/answers/windows-nt/batch-file-to-delete-old-files/20840.html

Execute a script in unix using batch fil www.computing.net/answers/windows-nt/execute-a-script-in-unix-using-batch-fil/11886.html