in reply to Re: save read-only Excelin thread save read-only Excel
system("attrib -r filename.csv");
If the filename contains spaces or other interesting characters, see e.g. Win32::ShellQuote.