im trying to rename existing excel file but im getting illegal character path error please help
this query i fired : Directory.GetFiles(“C:\Users\FILLION SOLUTIONS\Desktop\Nutan_mail\New folder”+file+“-”+DateTime.Now.ToString(“dd/MM/yyyy”)+“.xlsx”)
Hi @monikanimbalkar
What is the final value of the path you generated?
I can see a invalid “ in this. try replacing it with normal double quote ".
“
"
Hi,
You cannot use / in your file path. So, can you try toString("ddMMyyyy") ?
"ddMMyyyy"
Regards,