Moving xlsx file from one folder to another

Hi All,

I have an interesting problem wherein i am having 2 files in the same directory, one is of the format MHTML and the other is xlsx, i want to move the xlsx file in another directory.How can i do that

Thanks
Arjun

@shekhawat.arjun1307 - have you searched in the forum already? This is very simple.

I recommend to search in the forum first. Clue is to use Directory.GetFiles with the search pattern.

1 Like

Hi @shekhawat.arjun1307

Please use the below function.

Directory.GetFiles("YourFolderpath","*.xlsx")

Regards

1 Like

Hi @pravin_calvin - it should be comma instead of + right? just checking…

@prasath17

Yes you re right!

1 Like

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