Hey Everybody,
i am trying to move a file in another folder and also add the datetime but it always says “The given paths format is not supported”. When I try to move it without the datetime it is no problem. Can you help me?
Hey Everybody,
i am trying to move a file in another folder and also add the datetime but it always says “The given paths format is not supported”. When I try to move it without the datetime it is no problem. Can you help me?
You were almost done
We cannot our a space And colon between file name with love activity
That was the issue
So the expression be like this while mentioning the time stamp
Now.ToString(“MM-dd-yyyy_hh_mm_ss”)
Cheers @NiclasW
@Palaniyappan Thank you. But now it only renames it to the DateTime. Example: Before the file name was “Abc” and now it should be “Abc 30.09.2019 11:12:32”…
“C:\Users\XXXX\Desktop\Test 2\” + Excel.ToString + " " + System.DateTime.Now.ToString(“MM-dd-yyyy_hh_mm_ss”)+ “.xlsx”
Something like this isn’t working.
So mention like this
“Yourfolderpath”+”\”+Path.GetFileNamewithoutextension(“yourfilepath”)+”_”+ Now.ToString(“MM-dd-yyyy_hh_mm_ss”)+ Path.GetFileExtension(“yourfilepath”)
Cheers @NiclasW
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.