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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Sachin SinghRank #66 · 26.2K reputationPosted Mar 3, 2021, 10:15 AM EST
Sachin SinghRank #66 · 26.2K reputationPosted Mar 3, 2021, 9:40 AM EST
or List
Suresh Panta94 reputationPosted Mar 3, 2021, 9:45 AM EST
Sachin SinghRank #66 · 26.2K reputationPosted Mar 3, 2021, 9:51 AM EST
Suresh Panta94 reputationPosted Mar 3, 2021, 10:02 AM EST