Computing.Net > Forums > Programming > Rename Extension

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.

Rename Extension

Reply to Message Icon

Name: tach18k
Date: September 24, 2009 at 15:29:51 Pacific
OS: Windows XP
CPU/Ram: 3g
Subcategory: Batch
Comment:

I need a script bat file that will change the file extension to the system date. I have DB backup files that end in 'bak' but I need to collect them daily. But they will over ride daily as the file created is always the same name, (abc.bak) . this way I can change the new backup file everyday and not over ride the new one.

thanks



Sponsored Link
Ads by Google

Response Number 1
Name: Mechanix2Go
Date: September 25, 2009 at 00:23:15 Pacific
Reply:

You need to post the content of %date%.

One size doesn't fit all.


=====================================
Helping others achieve escape felicity

M2


0

Response Number 2
Name: tach18k
Date: September 25, 2009 at 07:38:56 Pacific
Reply:

Ok, I'm not a big script user much less write them. I have change things a bit. as long as I can just add the date to the file name then I'm ok. So all I need will be; M/D/Y that will be enough. And that would come from system date, so it will change daily. I will not need the extension changed.


0

Response Number 3
Name: ricardo647
Date: September 25, 2009 at 11:11:18 Pacific
Reply:

Then see this ready code that will fit to you:
http://www.computing.net/answers/pr...


0

Response Number 4
Name: Mechanix2Go
Date: September 25, 2009 at 11:19:28 Pacific
Reply:

#3, not quite


=====================================
Helping others achieve escape felicity

M2


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More






Use following form to reply to current message:

Login or Register to Reply
LoginRegister


Sponsored links

Ads by Google


Results for: Rename Extension

Renameing Tif Files www.computing.net/answers/programming/renameing-tif-files/14927.html

Batch Rename files in a folder www.computing.net/answers/programming/batch-rename-files-in-a-folder/15096.html

Batch file issues: batch renaming www.computing.net/answers/programming/batch-file-issues-batch-renaming/12034.html