Search code examples
batch-filedos

How to rename multiple file names through Ms-dos command


How to add a String (100000) to multiple file names through Ms-dos command.

I have multiple files (customer,address,postal_area..etc) stored in single folder. I want to add 100000 string to these file names like below..

100000_customer.txt
100000_address.txt
100000_posrtal_area.txt

how to do this one with single dos command? Is it possible?

Many thhanks for your help.

Sunitha.


Solution

  • Try this command

    ren "*.txt" "100000_*.txt"