.net - Delete a lot of files and sub folders with c# and threads -


does have sample or no how delete lot of files , sub directories in folder threads , c# .net.

thanks

the best way call directory.delete(directory, true); delete directory, of subdirectories, , files. no threading required.

if want asynchronously (i.e. have program other things while directory deletion happening), take @ calling synchronous methods asynchronously.


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -