I'm attempting to rename all files with the file extension of ".ACH" to ".TXT" on another directory.
I used the below batch file on my local machine and it works like a charm:
@Echo Off
CD C:\Users\jonsmith\OneDrive\PC\jonsmith-PC\Desktop\TestingBatch Rename
forfiles /S /M *.ACH /C "cmd /c rename @file @fname.TXT"
However, when I attempt to use the same syntax on the server, nothing happens:
@Echo Off
CD D:\AP\ACHTest Rename
forfiles /S /M *.ACH /C "cmd /c rename @file @fname.TXT"
I'm not understanding what I'm doing wrong, but something tells me it's how I'm using the CD
command.