Getting Error while using this statement in Move File

Hi Everyone,
Statement is : “C:\Users\chow\Desktop\helloworld “+DateTime.Now.ToString(“MM/dd/yyyy”)+”.xlsx”
Can anyone help me in this regard ,Thanks in advance…

1 Like

Hi @N_Tilak_Babu

The file names does not allows slash into its Name. You can use DateTime.Now.ToString(“MMddyyyy”)

Regards,

Andres

2 Likes

Absolutely right, I support this to be solution.
/ is not allowed in filename

Ref. Filename - Wikipedia

2 Likes

Thank you Andres…you are right…Any File does not allow some characters like /,*

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.