I can't recall the last time I wrote a dos batch file. So it only stands to reason, I can't remember how to do something simple. What I want to do is iterate through a list of files and do a copy command from one directory to another. The problem is that the iteration file list has a different file extension than the extension used for copy. Something along the lines of:
\n FOR %%f in (*.dis) ECHO BASE(%%f).dat\n
So how do you do a function like BASE(fname)? It should take the value in the for loop and strip away the file extension. Short of that, are there some string manipulation functions where I can just strip the last n chars from the argument?
Thanks