JLDunn October 10, 2011 at 10:58:07 Specs: Windows XP
How do I rename a file in dos bat after .XLSM I have a batch file that processes an excel macro. The macro creates a .txt file and then I close the worksheet and workbook. I am trying to rename the .txt file without an extension within the same batch file but it doesn't work. If I run the same ren command in another batch file it works. Help??
I am trying to rename the .txt file without an extension within the same batch file but it doesn't work. Are you waiting until Excel closes? If it's still holding onto the file, you won't be able to do much from your script.
The information on Computing.Net is the opinions of its users. Such
opinions may not be accurate and they are to be used at your own risk.
Computing.Net cannot verify the validity of the statements made on this
site. Computing.Net and Compnet Ventures, LLC hereby disclaim all responsibility
and liability for the content of Computing.Net and its accuracy.