Click here to Skip to main content
15,896,912 members
Home / Discussions / C#
   

C#

 
GeneralList of open excel documents and the path of the document Pin
Member 5142527-Apr-08 23:22
Member 5142527-Apr-08 23:22 
GeneralRe: List of open excel documents and the path of the document Pin
Dave Kreskowiak8-Apr-08 5:03
mveDave Kreskowiak8-Apr-08 5:03 
Generalhelp!!!!!!!! passing class as function parameter Pin
EvilInside7-Apr-08 23:17
EvilInside7-Apr-08 23:17 
GeneralRe: help!!!!!!!! passing class as function parameter Pin
buchstaben7-Apr-08 23:21
buchstaben7-Apr-08 23:21 
GeneralRe: help!!!!!!!! passing class as function parameter Pin
Christian Graus8-Apr-08 0:18
protectorChristian Graus8-Apr-08 0:18 
QuestionHow to delete a file in locked status Pin
Exelioindia7-Apr-08 21:40
Exelioindia7-Apr-08 21:40 
AnswerRe: How to delete a file in locked status Pin
Christian Graus7-Apr-08 21:54
protectorChristian Graus7-Apr-08 21:54 
AnswerRe: How to delete a file in locked status Pin
Simon P Stevens7-Apr-08 22:35
Simon P Stevens7-Apr-08 22:35 
You can use Process Explorer from SysInternals[^]) to figure out what process is locking the file. Open it up, Click Find then "Find handle or Dll..." Enter the filename, and click search.

This will help you identify which program is holding the file open.

If it's your app holding the file open, like Christian says, you need to make sure you close any Bitmap objects, or streams you have as they hold locks on the file.

If it's not your app holding the file open, then there's not much you can do. Look at why the file is held open. Consider telling the user that you were unable to delete the file because another application has it open, and give the user a chance to close the application and then retry the delete.



GeneralRe: How to delete a file in locked status Pin
Exelioindia7-Apr-08 22:49
Exelioindia7-Apr-08 22:49 
GeneralRe: How to delete a file in locked status Pin
Simon P Stevens7-Apr-08 23:00
Simon P Stevens7-Apr-08 23:00 
GeneralRe: How to delete a file in locked status Pin
Christian Graus7-Apr-08 23:04
protectorChristian Graus7-Apr-08 23:04 
AnswerRe: How to delete a file in locked status Pin
Giorgi Dalakishvili7-Apr-08 23:01
mentorGiorgi Dalakishvili7-Apr-08 23:01 
GeneralRe: How to delete a file in locked status Pin
Simon P Stevens7-Apr-08 23:11
Simon P Stevens7-Apr-08 23:11 
GeneralRe: How to delete a file in locked status Pin
Giorgi Dalakishvili7-Apr-08 23:17
mentorGiorgi Dalakishvili7-Apr-08 23:17 
GeneralRe: How to delete a file in locked status Pin
Simon P Stevens7-Apr-08 23:25
Simon P Stevens7-Apr-08 23:25 
GeneralRe: How to delete a file in locked status [modified] Pin
Giorgi Dalakishvili7-Apr-08 23:29
mentorGiorgi Dalakishvili7-Apr-08 23:29 
QuestionRetrive item from datagridview in C# window application Pin
dev_tikili7-Apr-08 21:20
dev_tikili7-Apr-08 21:20 
GeneralRe: Retrive item from datagridview in C# window application Pin
dan!sh 7-Apr-08 22:13
professional dan!sh 7-Apr-08 22:13 
GeneralRe: Retrive item from datagridview in C# window application Pin
Sandilian7-Apr-08 22:57
Sandilian7-Apr-08 22:57 
Questionusing WinZip32 in C# Pin
nilam24777-Apr-08 20:48
nilam24777-Apr-08 20:48 
GeneralRe: using WinZip32 in C# Pin
Christian Graus7-Apr-08 21:16
protectorChristian Graus7-Apr-08 21:16 
QuestionRe: using WinZip32 in C# Pin
nilam24777-Apr-08 21:49
nilam24777-Apr-08 21:49 
GeneralRe: using WinZip32 in C# Pin
nilam24777-Apr-08 22:04
nilam24777-Apr-08 22:04 
GeneralRe: using WinZip32 in C# Pin
Christian Graus7-Apr-08 22:05
protectorChristian Graus7-Apr-08 22:05 
GeneralRe: using WinZip32 in C# Pin
Rob Philpott7-Apr-08 23:07
Rob Philpott7-Apr-08 23:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.