i have a file in cwd, i don't know it's name.. the only thing that i know it will be .mp4 extension.. how can i do that?
Loading
i have a file in cwd, i don't know it's name.. the only thing that i know it will be .mp4 extension.. how can i do that?
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 attend4days leftRegister
Hrasha91 reputationPosted Jun 19, 2021, 10:39 AM EDT
Anant VernekarRank #1,055 · 1.8K reputationPosted Jun 18, 2021, 10:49 AM EDT
Use like this...
string[] filePaths = Directory.GetFiles(@"your Current working directory path", "*.mp4")
This will work for you...
You will find all the file path located in CWD with extension .mp4
Rajanikant HawaldarRank #107 · 20.6K reputationPosted Jun 19, 2021, 5:29 AM EDT
Hrasha91 reputationPosted Jun 19, 2021, 5:42 AM EDT
Rajanikant HawaldarRank #107 · 20.6K reputationPosted Jun 19, 2021, 5:46 AM EDT
Hrasha91 reputationPosted Jun 19, 2021, 5:48 AM EDT
Rajanikant HawaldarRank #107 · 20.6K reputationPosted Jun 19, 2021, 5:50 AM EDT
Hrasha91 reputationPosted Jun 19, 2021, 5:52 AM EDT
Anant VernekarRank #1,055 · 1.8K reputationPosted Jun 19, 2021, 9:56 AM EDT