delete-file

DeleteFile of an EXE immediately after Process.WaitForExit fails

I do the following: Copy an executable to C:\temp\x.exe Start the executable with System.Diagnostics.Process.Start and then wait for the process to exit, synchronously, by calling WaitForExit on the Process object returned by Start. Delete the executable C:\temp\x.exe On some machines, this works great, but on others, the call to Del...

After patch replaced dll is not deleted on uninstall

Install Shield 2009 Premier: Basic MSI Project. Deploys some dll to system32 (and others to other directory) Uninstall of it doesn't delete these dlls from System32 directory. So i added a custom action which forcefully deletes them & it did my job. But I needed a patch of that msi setups. I created it from Install Shield & it just repl...

C++ delete file

When I compile and run my C++ program that deletes a file called example.txt (below) #include <stdio.h> int main () { if( remove( "example.txt" ) != 0 ) perror( "Error deleting file" ); else puts( "File successfully deleted" ); return 0; } It comes out like this... cd c:\Users\Mark\Desktop C:\Users\Mark\Desktop>app.e...

The process cannot access the file because it is being used by another process.

Hello everyone! I am adding images to a FlowLayoutPanel control via the following code Dim WithEvents Pedit As DevExpress.XtraEditors.PictureEdit Private Sub LoadImagesCommon(ByVal fi As FileInfo) Pedit = New DevExpress.XtraEditors.PictureEdit Pedit.Width = 133 Pedit.Height = 98 Pedit.Image = Image.From...