Thank you so much for helping me out...the code looks great and works well and I have also learned how to do all this (yay!). Just so you can see what the final product of all of these posts, here is the code:
Code:
#include <iostream>
#include <stdlib.h>
#include <windows.h>
#include <stdio.h>
int main()
{
WIN32_FIND_DATA FindData;
HANDLE hFind;
char DirPath[100] = "C:\\My Documents\\Chris\\Folder";
char FilePath[100];
hFind = FindFirstFile("C:\\My Documents\\Chris\\Folder\\*.*",
&FindData);
if (hFind != INVALID_HANDLE_VALUE)
{
strcpy (FilePath, DirPath);
strcat (FilePath, "\\");
strcat (FilePath, FindData.cFileName);
remove(FilePath);
while(FindNextFile(hFind,&FindData))
{
strcpy (FilePath, DirPath);
strcat (FilePath, "\\");
strcat (FilePath, FindData.cFileName);
remove(FilePath);
}
FindClose(hFind);
}
else
{
cout << "There were no files found\n";
}
system("pause");
return 0;
}
Thanks again