Computing.Net > Forums > Windows 95/98 > Re: BAT file programming

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.

Re: BAT file programming

Reply to Message Icon

Name: Hari
Date: October 1, 2003 at 00:59:14 Pacific
OS: Win'00
CPU/Ram: P4,256
Comment:

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..




Sponsored Link
Ads by Google

Response Number 1
Name: TopFarmer
Date: October 1, 2003 at 12:17:01 Pacific
Reply:

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.


0

Response Number 2
Name: 808
Date: October 2, 2003 at 00:20:14 Pacific
Reply:

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


0

Response Number 3
Name: 808
Date: October 2, 2003 at 00:24:42 Pacific
Reply:

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



0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


cdrw seems full cannot solve registry ent...



Post Locked

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


Go to Windows 95/98 Forum Home


Sponsored links

Ads by Google


Results for: Re: BAT file programming

.BAT File Needed www.computing.net/answers/windows-95/bat-file-needed/129992.html

.bat file www.computing.net/answers/windows-95/bat-file/149792.html

*.lnk files that are targeted to *.bat files. www.computing.net/answers/windows-95/lnk-files-that-are-targeted-to-bat-files/45138.html