technomark.in
Hot News

$(this) Selector And Children / Find In jQuery

Detect An Undefined Object Property In JavaScript

Rotate And Save Video Using VLC Media Player

Capitalize The First Letter Of String In JavaScript

Convert Any Files To Any Format Using VLC Media Player

Asp.Net AngularJS WCF IIS
DataBase Jquery Bikes Random
HomeContact Us Watch Our YouTube Channel ..........Blog Spot..........

Technomark.in

How To Logout From All Devices In Skype

Technomark.in

How To Embed Google Map In Your Code

Technomark.in

How To Install IIS (Internet Information Services) On Windows

Technomark.in

Enable Directory Browsing In IIS

View All


Check If File Is In Use In Asp.Net (C#)


Is there a way to check if a file is in use

> Here we consider Is there a way to check whether a file is in use in Asp.Net.
> Normally for updating the file in Asp.Net, it should not be used by any other task.
> So the first priority is to check whether the file is free to use.
> The best way to achieve this is to open the file within try catch block with read mode.
> While opening the file, if it is used by other thread, we will get the exception.
> This exception can be handled within catch block. An example is given below.

Check If File Is In Use In Asp.Net, Check If File Is In Use In C#, Check whether A File Is In Use In Asp.Net, Check whether A File Is In Use In C#, Is there a way to check whether a file is in use in Asp.Net, Is there a way to check whether a file is in use in C#, Asp.Net, C#, .Net

> Within exception block, we can return true since the file is in use.
> if we are not getting any Exception, we can return false.
> False means, the file is not used by any other process.
> By this way we can check whether a file is in use or not.

Watch Video of this Content on Video Streaming

Post Your Comment

Name *


Email *


Comment * Please provide all three fields for posting Comment




Technomark.in

Book Train Tickets on IRCTC Quickly During Tatkal Period

Technomark.in

Before You Copy Any Image From Internet

View All

Privacy StatementDisclaimerSitemap