D
Dwane
I am trying to create a DOS batch that would allow me to compare
today's date with a filename ddmmyyyy-xxxx-xxxx-na.txt. The "a" in the
"na" is also significant in that it designates an add process and a "d"
would therefore signify to delete.
I first need to compare the current date with the first 8 letters of my
filename and if they are equal, I need to execute a command, then
rename the file to X-ddmmyyyy-xxxx-xxxx-na.txt.
Does anyone have an idea of how I can do this? I have been looking all
over the web and am not sure exactly how to do string manipulation. I
even looked to see if there was a way to copy the filename into a file
and then manipulate data there or even copy the directory into a list
and do it there.
Any help would be appreciated.
Thank you
today's date with a filename ddmmyyyy-xxxx-xxxx-na.txt. The "a" in the
"na" is also significant in that it designates an add process and a "d"
would therefore signify to delete.
I first need to compare the current date with the first 8 letters of my
filename and if they are equal, I need to execute a command, then
rename the file to X-ddmmyyyy-xxxx-xxxx-na.txt.
Does anyone have an idea of how I can do this? I have been looking all
over the web and am not sure exactly how to do string manipulation. I
even looked to see if there was a way to copy the filename into a file
and then manipulate data there or even copy the directory into a list
and do it there.
Any help would be appreciated.
Thank you