Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script or batch file
#1
Dear All,
I have like 50 files names as 107208.txt, 107308.txt etc etc, main thing is 3rd number is "7". I need to change all files names to 108208, 108308 means 3rd number will change from 7 to 8 and also ext will also remove. So, lets say file 107208.txt will become 108208. All files are located on the same directory e.g c:\product_code (folder name).

Can someone please provide me the script?

Regards,
Saaz
#2
WORNING you will not be able to use the files because the extension is removed and please make a backup copy for your on protection.

If you understand DOS go to the directory where the files are and Type "ren ??7???.txt ??8???"
if the files are at the root you will see this c:\ ren ??7???.txt ??8???
#3
Time_Runner Wrote:WORNING you will not be able to use the files because the extension is removed and please make a backup copy for your on protection.

If you understand DOS go to the directory where the files are and Type "ren ??7???.txt ??8???"
if the files are at the root you will see this c:\ ren ??7???.txt ??8???

yes, thank you so much...it run perfectly fine.

Regards,
Irfan Raza


Forum Jump:


Users browsing this thread: 1 Guest(s)