Click here to Skip to main content
15,900,108 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to save file content that some contains same lines into the database? Pin
SeMartens5-Apr-09 22:42
SeMartens5-Apr-09 22:42 
GeneralRe: How to save file content that some contains same lines into the database? Pin
Nopo5-Apr-09 23:58
Nopo5-Apr-09 23:58 
GeneralRe: How to save file content that some contains same lines into the database? Pin
Nopo6-Apr-09 20:07
Nopo6-Apr-09 20:07 
QuestionHow to run any .exe file through WebService ? Pin
E_Gold5-Apr-09 22:07
E_Gold5-Apr-09 22:07 
AnswerRe: How to run any .exe file through WebService ? Pin
SeMartens5-Apr-09 22:10
SeMartens5-Apr-09 22:10 
GeneralRe: How to run any .exe file through WebService ? Pin
E_Gold6-Apr-09 2:29
E_Gold6-Apr-09 2:29 
GeneralRe: How to run any .exe file through WebService ? Pin
SeMartens6-Apr-09 2:49
SeMartens6-Apr-09 2:49 
QuestionCannot delete file....used by another process.....help guyz! Pin
Rajdeep.NET is BACK5-Apr-09 21:53
Rajdeep.NET is BACK5-Apr-09 21:53 
Hi there,

Ocassionally, due to malware infection, it is seen that some of the infected or suspicious files or folders can be neither deleted nor renamed and when tried to do so, a messagebox is display something like this: "The file/directory cannot be deleted because it is in use by another program or whatsoever". In such case, we have two options, either format the drive containing the file or continue with it.

However, let me directly come to the point. I have written a program which will create a directory with the following code:

{
System.IO.Directory.CreateDirectory("c:/myfolder");
}

With the above code, I have created a folder "myfolder" in the c: drive. But, this folder can be easily deleted. I want to know that how can I create a process or program associated with it running continuously, such that whenever the user tries to delete the folder, the messageBox "The file/directory cannot be deleted because it is in use by another program" is displayed and the user fails to delete it?

Help me and I assure that your help will be appreciated,
Thanx..... and sorry for my poor english (I am trying to improve),
Rajdeep.NET Sigh | :sigh:
AnswerRe: Cannot delete file....used by another process.....help guyz! Pin
N a v a n e e t h5-Apr-09 22:06
N a v a n e e t h5-Apr-09 22:06 
AnswerRe: Cannot delete file....used by another process.....help guyz! Pin
SeMartens5-Apr-09 22:06
SeMartens5-Apr-09 22:06 
GeneralRe: Cannot delete file....used by another process.....help guyz! Pin
Rajdeep.NET is BACK5-Apr-09 22:14
Rajdeep.NET is BACK5-Apr-09 22:14 
GeneralRe: Cannot delete file....used by another process.....help guyz! Pin
HuntingWabbits6-Apr-09 2:29
HuntingWabbits6-Apr-09 2:29 
GeneralRe: Cannot delete file....used by another process.....help guyz! Pin
Skymir6-Apr-09 3:08
Skymir6-Apr-09 3:08 
AnswerRe: Cannot delete file....used by another process.....help guyz! Pin
Henry Minute6-Apr-09 1:52
Henry Minute6-Apr-09 1:52 
QuestionAbout Thread............ Pin
Isaac Gordon5-Apr-09 21:50
Isaac Gordon5-Apr-09 21:50 
AnswerRe: About Thread............ Pin
N a v a n e e t h5-Apr-09 21:59
N a v a n e e t h5-Apr-09 21:59 
Questionhow to solve C# graphicsPath.widen outofmemoryException Pin
wgh168995-Apr-09 21:49
wgh168995-Apr-09 21:49 
AnswerRe: how to solve C# graphicsPath.widen outofmemoryException Pin
DaveyM695-Apr-09 23:08
professionalDaveyM695-Apr-09 23:08 
QuestionRe: how to solve C# graphicsPath.widen outofmemoryException Pin
wgh168996-Apr-09 4:01
wgh168996-Apr-09 4:01 
AnswerRe: how to solve C# graphicsPath.widen outofmemoryException Pin
DaveyM697-Apr-09 1:13
professionalDaveyM697-Apr-09 1:13 
GeneralRe: how to solve C# graphicsPath.widen outofmemoryException Pin
wgh168997-Apr-09 2:19
wgh168997-Apr-09 2:19 
QuestionStatic KeyWord Pin
Isaac Gordon5-Apr-09 21:48
Isaac Gordon5-Apr-09 21:48 
AnswerRe: Static KeyWord Pin
Megidolaon5-Apr-09 21:57
Megidolaon5-Apr-09 21:57 
AnswerRe: Static KeyWord Pin
N a v a n e e t h5-Apr-09 22:04
N a v a n e e t h5-Apr-09 22:04 
QuestionDataGridView updating datasource problem Pin
half-life5-Apr-09 21:24
half-life5-Apr-09 21:24 

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.