Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Hi there,
I need to read the files contains under my folder, and need to check for rename that file using BAT?Ok, i will let clear you...
i have files like Fnameyyyymmdd.0000.txt under my folder. now i need to rename this file to Fnameyyyymmdd.txt, is it possible using BAT file programming...
Also on the PART of file name "0000" won't be same every time, that will be changed everyday...
This bcos, i am sending this file to my DTS by dyanamically, so i need to send like specified above???
Can anyone there to help...
Thanks in Advance...
Hari..

first look in the DOS forum, there have been post of this type. if you can not find one to help , post you problem there, you will likely get more help.

If you can send the files that you want to rename to a seperate directory, you can RENAME them all with this .bat
_____________________________________________
@echo off
cls
command /c ren *.* *.txt
cls
_____________________________________________
_____________________________________________
If you want to COPY them all to a new name instead, use this .bat>
----------------
@echo off
cls
command /c Copy *.* *.txt
cls
_____________________________________________Run the .bat file from the same directory as the files you want to rename!
Then refresh your screen to see the new names by pressing [F5]
OK?
Bob/808

That message diddn't print well!
It's supposed to be;One space between [command] and [/c]
One space between [/c] and [ren]
One space between [ren] and [*.*]
One space between [*.*] and [*.txt]OK?
808

![]() |
cdrw seems full
|
cannot solve registry ent...
|

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |