Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Click here to start participating now! Also, check out the New User Guide.
Renaming files
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!
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:
Summary: If you have to rename files as those you posted, .0 extension and fixed format filename, it is more practical you try the following: @Echo Off For /F "tokens=*" %%I in ('Dir /B %~f1.\*.0') Do Call :RE...
Summary: Easiest approach: Requires the ability to use the DOS extensions (NT4 SP3 or SP4 onwards I think???) rem Rename File @echo off rem Enable Extensions verify other 2>nul setlocal enableextensions if er...
Summary: I have tried lots of ways to rename files by using a batch file but I can not add prefixes to the my old file names by using wild cards. Is there a way to rename with wild cards as the samples below. ...