DOS bat file help needed URGENT
-
I have a file that is created (0526000004.TMP) in one directory. The file is creating daily and has the format of today's date being in the name (ie. file above is the file for May 26, 2004). I need to go to that directory and grab that file (based on today's date, but formatted like the filename is formatted "MMDDxxxxYY".TMP), copy or move that file to another directory called "Backup", then copy that file to another directory called "Renamed" and rename the file "Import.TMP". From the "Renamed" directory, I will be importing that file daily into an MS Access Db. This will be a daily occurrence. Im rough with DOS commands, so any help would be much appreciated! Thanks Cavall "Nothing is at last sacred, but the integrity of your own mind." "What lies behind us and what lies before us are nothing compared to what lies within us." - Ralph Waldo Emerson
-
I have a file that is created (0526000004.TMP) in one directory. The file is creating daily and has the format of today's date being in the name (ie. file above is the file for May 26, 2004). I need to go to that directory and grab that file (based on today's date, but formatted like the filename is formatted "MMDDxxxxYY".TMP), copy or move that file to another directory called "Backup", then copy that file to another directory called "Renamed" and rename the file "Import.TMP". From the "Renamed" directory, I will be importing that file daily into an MS Access Db. This will be a daily occurrence. Im rough with DOS commands, so any help would be much appreciated! Thanks Cavall "Nothing is at last sacred, but the integrity of your own mind." "What lies behind us and what lies before us are nothing compared to what lies within us." - Ralph Waldo Emerson
The directory that the file is first created in. Is it the only file in the directory that has the file extension .TMP ? If so then it shouldn't be to hard. If not then it might be a challenge that requires something more than a simple bat file. Cheers uator
-
The directory that the file is first created in. Is it the only file in the directory that has the file extension .TMP ? If so then it shouldn't be to hard. If not then it might be a challenge that requires something more than a simple bat file. Cheers uator
Currently it is one of many files b/c it is created daily. Once the process is set in place, though, we would make it rename the file and move it and the original copy to another folder so that the active working directory would only have that one TMP file. Got any ideas? THanks "Nothing is at last sacred, but the integrity of your own mind." "What lies behind us and what lies before us are nothing compared to what lies within us." - Ralph Waldo Emerson