I apologies for my total lack of programming knowledge, but I have been having a look at some of the threads on this forum and am convinced someone can help me...
I was wondering if it is possible to create a script/batch file to do a couple of things...
I guess I will start off with the problem. I have a certain program (call it Program 1) which creates files entitled "qcdtl01.txt". Within the "qcdtl01" text file is a series of data, including the time the file was created in the following format "Jan 13 2009 02:51 pm". Another program I run at the same time (Program 2) uses the data within the text files created by "Program 1", however to do this:
1) The text file needs to have the name changed from "qcdtl01.txt" to "qcdetail.txt"; and
2) The time stamp within the file needs to be in 24 hour time.
This needs to be done without altering any of the other data within the file.
So I guess what I was wondering was is it possible to create a script/batch? file to:
1) Search for recently created files on a drive and in all subdirectories on that drive for files with the name "qcdtl01.txt", and IF it finds them carry out step 2 which would be;
2) Rename the file to "qcdetail.txt" and modify the time stamp within the txt file to 24 hour time, all without changing the other contents of the text file.
These 2 steps need to happen every 15 seconds or so, so it would be cool if it could be contained within a batch file or something that i can run with a task scheduler...
I hope that makes sense, and looking forward to your replies.