TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
prasoon tiwari
NA
2
659
Delete a directory while maintaining integrity of code
May 14 2020 11:03 PM
Hi,
I am using Delete function to delete a directory.
However my next line of code starts executing even before the delete operation is finished..
Can someone help how to ensure that delete transaction is completed before code moves to next line?
Directory.Delete(GlobalVar.IMAGING_FOLDER, true);
//Some code to ensure that Folder is deleted successfully before moving to belwo next line of code.
ExtractFile(SourceFile, DestinationFolder);
Reply
Answers (
2
)
Explain about Inversion of Control and dependency injections
How could i bind 3 columns in dropdown list in asp.net