|Thanks in advance for your help - I am relatively new to batch, so this may be simple to write, but here is my problem. I am operating in Windows XP and using batch file to call another program to create two files, and I need to rename one of those files. I also use this batch to erase one of the files the embedded script creates and move the renamed file|
I have a batch which executes a script in an application which deposits two files to a file folder
The KHZ061711 will always be in the format KHZMMDDYY - where MM = month in two digits, DD = day in two digits, and YY = year in two digits.
I need to rename the KHZMMDDYY.txt to KHZMMDDY.txt - where the first "Y" from the year is dropped from the new file name.
Here is my attempt so far - I can rename the text file with new strings like "test", but I cannot figure out how to eliminate just one letter from the file name.
C:\application\application.exe SCRIPT mlam.scr -exit
rename khz*.txt khztest.txt
(REM would like this to be something like:
rename KHZabcdef.txt KHZabcdf.txt - where the "e" is dropped from the new file name)
move c:\application\users\brian\testing\khztest.txt c:\axys3\users\
Any help would be greatly appreciated