how can I check if the fileName has existed on the list or not before the move?
NewFileName = Path.GetDirectoryName(OldFileName) + "\\" + NewFileName;
System.IO.File.Move(OldFileName, NewFileName);
thnk you in advance!
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Sachin SinghPosted Mar 3, 2021, 3:15 PM
Suresh PantaPosted Mar 3, 2021, 3:02 PM
Sachin SinghPosted Mar 3, 2021, 2:51 PM
Suresh PantaPosted Mar 3, 2021, 2:45 PM
Sachin SinghPosted Mar 3, 2021, 2:40 PM
or List