How to delete all the files in particular folder?
I can use WinApi::Deletefile(…) but here i need to give the exact file name. In my scenario, I may have more than one files and in different name. I want to empty the folder.
Please help me to resolve the issue.
Thanks for the idea. Can you pls give some sample code do that.
static void clearDirectory(Args _args)
files = System.IO.Directory::GetFiles(‘C:\Myfolder’);
filecount = files.get_Length();
for(i=0; i < filecount; i++)