Thank you som much for your reply and i have found another command to do this but it has a bug . if my files names are 001.txt,002.txt the script renames them to file1.txt,fie2.txt and then it renams file1.txt to file3.txt so here is the script i used :
:: Rtxt.BAT Syntax: Rtxt Folder_Name
If not exist %~f1.\*.txt (Echo no .txt files found in %~f1 & GoTo :EOF)
For %%A in (%~f1.\*.txt) Do Call :REN %%A
Set /A Count=%Count%+1
Ren "%*" file%Count%.txt
Echo Ren "%*" file%Count%.txt
and here is url for the code check this if there anything you can do to help me to fix that bug i will really appreciate it Thank You
The information on Computing.Net is the opinions of its users. Such
opinions may not be accurate and they are to be used at your own risk.
Computing.Net cannot verify the validity of the statements made on this
site. Computing.Net and Purch hereby disclaim all responsibility
and liability for the content of Computing.Net and its accuracy.