Computing.Net > Forums > Disk Operating System > Renaming files

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.

Renaming files

Reply to Message Icon

Name: Conor McGann
Date: May 18, 2000 at 07:57:34 Pacific
Comment:

Every day we get an orders file (Orders.txt) ftp'd to a folder on a windows 98 machine
The file is always called Orders.txt. What i need to do is, in Dos, copy that file to a directory
and rename it with the days Date, then delete the original orders.txt file. This will make it unique
so it won't be overwritten.
Is This possible!



Sponsored Link
Ads by Google

Response Number 1
Name: john westerman
Date: May 18, 2000 at 08:45:17 Pacific
Reply:

no

you need a program to do that (i believe)


0

Response Number 2
Name: Try This!
Date: May 18, 2000 at 12:47:05 Pacific
Reply:

Why not ask sender to give the file a unique daily file name such as 180500.txt That way you will not need to bother with this problem! It seems to me to be a simple solution!


0

Response Number 3
Name: detika
Date: May 19, 2000 at 01:20:44 Pacific
Reply:

you could write a batchfile and run it automatically:

REN Orders.txt %Date%.txt
DEL Orders.txt

I believe that this should do the trick.



0

Response Number 4
Name: Michael Robertson
Date: May 19, 2000 at 14:40:20 Pacific
Reply:

This URL has batch file utilities that insert the date into an evar:

http://www.pressroom.com/~tglbatch/

Look at the utility called More Date.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

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


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: Renaming files

rename files www.computing.net/answers/dos/rename-files/14038.html

batch file to rename files by date. www.computing.net/answers/dos/batch-file-to-rename-files-by-date/5517.html

HELP Renaming files with a .bat file www.computing.net/answers/dos/help-renaming-files-with-a-bat-file-/3679.html