59.Find,Search a file and Directory - Windows System Programming in C/C++

preview_player
Показать описание
#WindowSystemProgramming #ASystemProgrammingChannel
In This Video Tutorials, I have explained how to find, search a file and directory.
I have used following API's for Programming:
1.FindFirstFile
2.FindNextFile
3.FindClose
4.GetFullPathName

for more info you can check this link:

For Code and Notes:

You can support me on Patreon:

Credit from - MSDN
Please Share and Subscribe ASystemProgramming Channel.
Рекомендации по теме
Комментарии
Автор

Sir, please tell if it will work for 64 bit as well?

itsreallykashish
Автор

So if i want to get all cpp files in Driver c:\\ what should i do ?
I try alot of codes but still cannot becouse of alot of sub dir .
any one can help.

mohammadyasein
Автор

Because Windows does not have <dirent.h> header file, for a few days I was trying to find out how I can read list of directories. This is the first thing that worked. Thank you for your nice video. I have to elaborate on your code and find out how I can distinguish directory names from file names.

meisamrasouli
Автор

Hi when I run the code I receive the error that says Cannot convert LPCWSTR to LPCSTR for hFindFile = FindFirstFile(file, &FindFileData);
do you know what is the problem sir?

berk