in reply to Re: Rename *_valid1.csv to .csv
in thread Rename *_valid1.csv to .csv

Thank you. Yes, I took the relevant portion from the main program so that its easy to explain. The code you posted worked perfectly, except that it does not overwrite the file if it already exist. Any way to overwrite the file?

Replies are listed 'Best First'.
Re^3: Rename *_valid1.csv to .csv
by marinersk (Priest) on Nov 05, 2013 at 17:26 UTC
    Check the documentation, but I doubt it. You can precede the renamewith an unlinkto work around the limitation, if it exists.