Deleted exe files
Somehow my itunes exe file has been deleted and I cannot open the program. I have the install disc but don;t know whether I should use this because I do not want to delete the files I already have on my ipod. WhaT should I do?
Well first thing, look in the recycle bin and restore it if it's there.
Similar Messages
-
Cannot delete exe files - The action can't be completed because the file is open in Windows Explorer
We have received 3 new computers with Windows 8.1. All of us 3 have the same problem: we cannot delete exe files with message "The action can't be completed because the file is open in Windows Explorer"
For example, I download skypeinstall.exe on desktop, install the program correctly and then try to delete the file: file is in use by Windows Explorer, cannot be delete.
We reboot computer, we are able to delete the file. But, if I restore the file from the recycle bin on the desktop, I cannot delete it again until I reboot the PC. I used ProcessExplorer to see what is locking it and I can see 5 instances of explorer.exe
locking the file.
I can always reproduce the same way:
1-Reboot
2-Delete exe file
3-Restore file
4-Delete stop working and 5 explorer.exe handle are locking it.
I have tried the following so far after reading multiple threads:
- De-activating Windows Search service
- Activating User Experience service
- Deleting from command prompt (no success)
- In folder options: inactivate display icon on thumbnail and activate always display icons, never thumbnail
- Changing folder view (contents, detail, small icons...)
- Using Lock Hunter - not working until reboot
None of these worked.
We all have Windows 8.1 with Crucial SSD drive, could the problem be linked with the SSD drive incompatibility?
Any help would be appreciated.Hi,
Please try to make a clean boot for your system, then check if this problem resolved.
Clean Boot: http://support.microsoft.com/kb/929135
If problem persists, try to open Resource Monitor to check handle of Explorer.exe, if there any exception, end them for test.
Roger Lu
TechNet Community Support -
Cannot instantly delete/edit .exe files.
Hello,
Problem is that my .exe files are held up by something invisible and only edit seeming instantly working is renaming.
Firstly - i'm the only one using this laptop, i'm admin, running programs as admin and this still happens. Used all available Avast virus scans - found some malware, but didn't remove the problem.
When i try to shift-delete them it takes 10 to 60 seconds and a bunch of retries for it to actually disappear... OK - i could live with it... But true problem is when trying to replace with some newer version - windows explorer says "used by other program",
DevC++ says "Permission denied", Code::Blocks - "Permission denied", MS Visual C++ 2010 Express - "cannot open file"... This is extremely irritating when trying to program and debug...
Using ASUS K55VD laptop i5 version with Win7 Pro.
Tried stripping all non-essential or less trusted processes - didn't help.
Tried disabling a bunch of services - didn't help.
PLEASE HELP! ^^
Don't want to re-install windows - have too many programs on C disk that i don't really want to loose/re-install...Wow that procmon creates huge logs fast...
Checked antivirus - even when fully disabled it doesn't help.
Now sifting trough procmon logs: A LOT of registry accesses by svchost.exe to HKCR\CLSID\{54D8502C-527D-43F7-A506-A9DA075E229C} areas like: InprocServer32\(Default); InprocServer32; InProcServer32
Edit: OK definitely didn't study enough yet... ^^ at least of what's up with these accesses. Could You give any pointers of what to look for?
Well this problem is not present in safe mode, but not a fan of going into safe mode everytime i need to program something.
Edit#2: now a bunch of this happens: Explorer.EXE CreateFile C:\users\edgetech\appdata\local\microsoft\office\groove\user\GFSConfig.xml PATH NOT FOUND (i deleted folder to see maybe it'd stop)
Edit #3: What happens when i try to manually overwrite:
22:44:08,7473442 Explorer.EXE 1656 CreateFile C:\ SUCCESS Desired Access: Read Data/List Directory, Read Attributes, Synchronize, Dis, Options: Synchronous IO Non-Alert, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a, OpenResult: Opened
22:44:08,7473992 Explorer.EXE 1656 FileSystemControl C:\ INVALID DEVICE REQUEST Control: FSCTL_LMR_QUERY_DEBUG_INFO
22:44:08,7474185 Explorer.EXE 1656 QueryDirectory C:\Dev-Cpp SUCCESS Filter: Dev-Cpp, 1: Dev-Cpp
22:44:08,7474595 Explorer.EXE 1656 CloseFile C:\ SUCCESS
22:44:08,7475646 Explorer.EXE 1656 CreateFile C:\Dev-Cpp SUCCESS Desired Access: Read Data/List Directory, Read Attributes, Synchronize, Dis, Options: Synchronous IO Non-Alert, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a, OpenResult: Opened
22:44:08,7476020 Explorer.EXE 1656 FileSystemControl C:\Dev-Cpp INVALID DEVICE REQUEST Control: FSCTL_LMR_QUERY_DEBUG_INFO
22:44:08,7476184 Explorer.EXE 1656 QueryDirectory C:\Dev-Cpp\edgetech SUCCESS Filter: edgetech, 1: edgetech
22:44:08,7476484 Explorer.EXE 1656 CloseFile C:\Dev-Cpp SUCCESS
22:44:08,7578214 Explorer.EXE 1656 CreateFile C:\Dev-Cpp\edgetech IS DIRECTORY Desired Access: Generic Read/Write, Dis, Options: No Buffering, Synchronous IO Non-Alert, Non-Directory File, Attributes: N, ShareMode: None, AllocationSize: n/a
22:44:08,7579011 Explorer.EXE 1656 CreateFile C:\Dev-Cpp\edgetech IS DIRECTORY Desired Access: Generic Read, Dis, Options: No Buffering, Synchronous IO Non-Alert, Non-Directory File, Attributes: N, ShareMode: Read, Write, Delete, AllocationSize: n/a
22:44:08,7579536 Explorer.EXE 1656 CreateFile C:\Dev-Cpp\edgetech IS DIRECTORY Desired Access: Read Attributes, Synchronize, Dis, Options: No Buffering, Synchronous IO Non-Alert, Non-Directory File, Attributes: N, ShareMode: Read, Write, Delete, AllocationSize: n/a
22:44:08,7610124 Explorer.EXE 1656 QueryStandardInformationFile C:\Users\edgetech\AppData\Local\Microsoft\Windows\Explorer\thumbcache_idx.db SUCCESS AllocationSize: 28.672, EndOfFile: 25.880, NumberOfLinks: 1, DeletePending: False, Directory: False
22:44:09,4927768 Explorer.EXE 1656 CreateFile C:\Dev-Cpp\edgetech\bugfixing.exe SHARING VIOLATION Desired Access: Generic Read/Write, Write DAC, Dis, Options: Sequential Access, Synchronous IO Non-Alert, Non-Directory File, Attributes: A, ShareMode: None, AllocationSize: 15.839
22:44:09,4932046 Explorer.EXE 1656 CreateFile C:\Dev-Cpp\edgetech\bugfixing.exe SHARING VIOLATION Desired Access: Generic Read/Write, Write DAC, Dis, Options: Sequential Access, Synchronous IO Non-Alert, Non-Directory File, Attributes: A, ShareMode: Read, Write, AllocationSize: 15.839
22:44:09,4934562 Explorer.EXE 1656 CreateFile C:\Dev-Cpp\edgetech SUCCESS Desired Access: Read Data/List Directory, Read Attributes, Synchronize, Dis, Options: Synchronous IO Non-Alert, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a, OpenResult: Opened
22:44:09,4935453 Explorer.EXE 1656 FileSystemControl C:\Dev-Cpp\edgetech INVALID DEVICE REQUEST Control: FSCTL_LMR_QUERY_DEBUG_INFO
22:44:09,4935819 Explorer.EXE 1656 QueryDirectory C:\Dev-Cpp\edgetech\bugfixing.exe SUCCESS Filter: bugfixing.exe, 1: bugfixing.exe
22:44:09,4936603 Explorer.EXE 1656 CloseFile C:\Dev-Cpp\edgetech SUCCESS
Edit #4: Again tries SAME copy action but got different results (?):
22:52:00,9589512 DllHost.exe 1744 CreateFile C:\Dev-Cpp\edgetech\bugfixing.exe DELETE PENDING Desired Access: Generic Read/Write, Write DAC, Dis, Options: Sequential Access, Synchronous IO Non-Alert, Non-Directory File, Attributes: A, ShareMode: None, AllocationSize: 15.839
22:52:00,9593026 DllHost.exe 1744 CreateFile C:\Dev-Cpp\edgetech\bugfixing.exe DELETE PENDING Desired Access: Read Attributes, Dis, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a
22:52:00,9594089 DllHost.exe 1744 CreateFile C:\Dev-Cpp\edgetech\bugfixing.exe DELETE PENDING Desired Access: Read Attributes, Dis, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a
22:52:00,9595042 DllHost.exe 1744 CreateFile C:\Dev-Cpp\edgetech\bugfixing.exe DELETE PENDING Desired Access: Read Attributes, Dis, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a
22:52:00,9610752 DllHost.exe 1744 CreateFile C:\ SUCCESS Desired Access: Read Data/List Directory, Read Attributes, Synchronize, Dis, Options: Synchronous IO Non-Alert, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a, OpenResult: Opened
22:52:00,9611298 DllHost.exe 1744 FileSystemControl C:\ INVALID DEVICE REQUEST Control: FSCTL_LMR_QUERY_DEBUG_INFO
22:52:00,9611516 DllHost.exe 1744 QueryDirectory C:\Dev-Cpp SUCCESS Filter: Dev-Cpp, 1: Dev-Cpp
22:52:00,9611980 DllHost.exe 1744 CloseFile C:\ SUCCESS
22:52:00,9613063 DllHost.exe 1744 CreateFile C:\Dev-Cpp SUCCESS Desired Access: Read Data/List Directory, Read Attributes, Synchronize, Dis, Options: Synchronous IO Non-Alert, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a, OpenResult: Opened
22:52:00,9613466 DllHost.exe 1744 FileSystemControl C:\Dev-Cpp INVALID DEVICE REQUEST Control: FSCTL_LMR_QUERY_DEBUG_INFO
22:52:00,9613654 DllHost.exe 1744 QueryDirectory C:\Dev-Cpp\edgetech SUCCESS Filter: edgetech, 1: edgetech
22:52:00,9613999 DllHost.exe 1744 CloseFile C:\Dev-Cpp SUCCESS
22:52:00,9644870 DllHost.exe 1744 CreateFile C:\Dev-Cpp\edgetech SUCCESS Desired Access: Read Attributes, Read Control, Dis, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a, OpenResult: Opened
22:52:00,9645285 DllHost.exe 1744 QuerySecurityFile C:\Dev-Cpp\edgetech BUFFER OVERFLOW Information: Owner
22:52:00,9645503 DllHost.exe 1744 QuerySecurityFile C:\Dev-Cpp\edgetech SUCCESS Information: Owner
22:52:00,9645687 DllHost.exe 1744 CloseFile C:\Dev-Cpp\edgetech SUCCESS
22:52:00,9687248 DllHost.exe 1744 QueryStandardInformationFile C:\Users\edgetech\AppData\Local\Microsoft\Windows\Explorer\thumbcache_idx.db SUCCESS AllocationSize: 28.672, EndOfFile: 25.880, NumberOfLinks: 1, DeletePending: False, Directory: False
At this point i'm definitely thinking windows re-install would be easier/faster. Gonna take a break for today and check more tomorrow with a clear head... -
I recently installed the newest version of Adobe Flash Player. As I was installing the program, Norton Internet Security said that the "getplusplus_adobe_reg.exe" file was suspect, so I deleted it. Now, every time I load Firefox, I get an error message saying that file is missing, and some websites do not function properly. I tried uninstalling and re-installing Firefox, and this did not solve the problem.
== This happened ==
Every time Firefox opened
== I installed the newest Adobe Flash Player versionGetplus is the problematic Adobe Download Manager (DLM) which no one needs. See if the suggestions in the following will help you to get rid of it: http://secunia.com/community/forum/thread/show/3665/adobe_dlm_will_not_uninstall
When updating or installing Adobe Flash (aka Shockwave Flash) follow these instructions (NOTE: you have the most current version installed):
<u>'''Install/Update Adobe Flash Player for Firefox (aka Shockwave Flash)'''</u>: your ver. 10.0 r22; current ver. 10.1 r53 ('''important security update 2010-06-10''')
~~red:Check your version here~~: http://www.mozilla.com/en-US/plugincheck/
See: '''[http://support.mozilla.com/en-US/kb/Managing+the+Flash+plugin#Updating_Flash Updating Flash]'''
-'''<u>use Firefox to download</u>''' and <u>'''SAVE to your hard drive'''</u> (save to Desktop for easy access)
-exit Firefox (File > Exit)
-check to see that Firefox is completely closed (''Ctrl+Alt+Del, choose Task Manager, click Processes tab, if "firefox.exe" is on the list, right-click "firefox.exe" and choose End process, close the Task Manager window'')
-double-click on the Adobe Flash installer you just downloaded to install/update Adobe Flash
-when the Flash installation is complete, start Firefox, and test the Flash installation here: http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_15507&sliceId=1
*<u>'''NOTE: On Vista and Windows 7'''</u> you may need to run the plugin installer as Administrator by starting the installer via the right-click context menu if you do not get an UAC prompt to ask for permission to continue (i.e nothing seems to happen). See this: http://vistasupport.mvps.org/run_as_administrator.htm
*'''<u>NOTE for IE:</u>''' Firefox and most other browsers use a Plugin. IE uses an ActiveX version of Flash. To install/update the IE ActiveX Adobe Flash Player, same instructions as above, except use IE to download the ActiveX Flash installer.
*Also see: http://kb.mozillazine.org/Flash ~~red:'''''AND'''''~~ [[How do I edit options to add Adobe to the list of allowed sites]]
<u>'''''Other Issues'''''</u>: ~~red:You have installed plug-ins with known security issues. You should update them immediately.~~
<u>'''Update Java'''</u>: your ver. 1.5.0_04 (~~red:very old~~); current ver. 1.6.0.20 (<u>important security update 04-15-2010</u>)
(~~red:Firefox 3.6 and above requires Java 1.6.0.10 or higher~~; see: http://support.mozilla.com/en-US/kb/Java-related+issues#Java_does_not_work_in_Firefox_3_6 )
''(Windows users: Do the manual update; very easy.)''
~~red:Check your version here~~: http://www.mozilla.com/en-US/plugincheck/
See: '''[http://support.mozilla.com/en-US/kb/Using+the+Java+plugin+with+Firefox#Updates Updating Java]'''
Do the update with Firefox closed.
<u>'''You'''</u> ~~red:<u>'''MAY'''</u>~~ <u>'''need to Update Adobe Reader for Firefox'''</u>: your ver. N/A; current ver. 9.3.2
~~red:Check your version here~~: http://www.mozilla.com/en-US/plugincheck/
See: http://support.mozilla.com/en-US/kb/Using+the+Adobe+Reader+plugin+with+Firefox#Installing_and_updating_Adobe_Reader
''<u>You may be able to update from the Adobe Reader installed on your system</u>'' instead of going to the Adobe site and downloading. Start > Program Files, find and click Adobe Reader to open, click Help, click Check for Updates.
''<u>If you go to the Adobe site to download the current Adobe Reader:</u>''
-'''<u>use Firefox to download</u>''' and <u>'''SAVE to your hard drive'''</u> (save to Desktop for easy access)
~~red:-See the images at the bottom left of this post to see the steps to take on the Adobe site~~
-exit Firefox (File > Exit)
-check to see that Firefox is completely closed (''Ctrl+Alt+Del, choose Task Manager, click Processes tab, if "firefox.exe" is on the list, right-click "firefox.exe" and choose End process, close the Task Manager window'')
-double-click on the Adobe Reader installer you just downloaded to install/update Adobe Reader
*<u>'''NOTE: On Vista and Windows 7'''</u> you may need to run the plugin installer as Administrator by starting the installer via the right-click context menu if you do not get an UAC prompt to ask for permission to continue (i.e nothing seems to happen). See this: http://vistasupport.mvps.org/run_as_administrator.htm
*'''<u>NOTE for IE:</u>''' Firefox and most other browsers use a Plugin. IE uses an ActiveX version. To install/update the IE ActiveX version, same instructions as above, except use IE to download the ActiveX installer.
*Also see: http://kb.mozillazine.org/Adobe_Reader ~~red:'''''AND'''''~~ [[How do I edit options to add Adobe to the list of allowed sites]] -
Task manager shows 25 or so of AcroRd32.exe files open - taking up 100% of the computer's resources. Restart clears them out, but having to do that several times a day. Trouble shooting says to delete them manually, which is a joke. there are too many of them in the office.. One forum posted a solution that they said was from Acrobat, but reluctant to do unless it comes from you. The solution that was posted was as follows:
[WinFntSvr]
TTToSysPrintDisabled=1
T1ToTTDisabled=1
Save this as acroct.ini
copy it in the windows directory
Is this legitimate? I need to fix the problem. It's hindering the work of everyone in the office.Have you tried disabling Protected Mode [Edit | Preferences | Security (Enhanced)] ?
-
I have tried everything I know to be able to download itunes back onto my computer since the itunes update failed.
I have deleted all the programmes, and checked that they are deleted
I have been struggling for weeks. And iTines seem to want to charge me £25 for support to help me sort it out- I'm not a happy customer!Hello Selfdeterminant,
Have you tried the steps as mentioned in this Apple Support kb for the iTunes Error after iTunes 11.1.4 Update : http://support.apple.com/kb/ts5376
Did you remove all the iTunes and its Components in the Given Order.
iTunes
Apple Software Update
Apple Mobile Device Support ( If unable to remove you can ignore it )
Bonjour
Apple Application Support
If you are unable to download iTunes Setup file using the Default browser then have you tried downloading iTunes with a different Web Browser, if not then try that. ( Internet Explorer, Mozilla Firefox, Google Chrome)
Save the iTunes Installer file in the Location where you can easily find it
After removing iTunes and its components Restart your Computer once and then Right click the iTunes Setup.exe file and run the Program as Administrator
If you are using the 64 Bit version of Windows on your computer then it is Good to change the Install Location from " C:\Program Files(x86)\iTunes " To " C:\Program Files\iTunes " while installing iTunes when it asks for the Location. -
Phony USPS exe file. Now can't seem to delete downloads.
I opened a phony email from USPS saying something was not deliverable and asking me to "Print Label." This downloaded an execute file 11 pages of computer programming text. Now I can't seem to delete downloads. How do I delete a download? Or, do I have a bigger problem? Jack.
There shouldn't be any harmful consequences because .exe files aren't even compatible with Macs (they're for Windows), they will always show up as script in TextEdit. So in the future don't even bother downloading .exe files, just stop the downloads if you see they are .exe because it's a waste of time and hard drive space.
Hope this helps,
- Daniel -
What is the plugin-container.exe file? It seems to be using 70% of usage of my computer's memory. How do I get rid of it?
Plugin-container is an "out-of-process plugins" crash protection, see for more info the link, and if you want to disable try the analytical info :
[http://kb.mozillazine.org/Plugin-container_and_out-of-process_plugins Plugin-container and out-of-process plugins]
thank you
Please mark "Solved" the answer that really solve the problem, to help others with a similar problem. -
I have a ListView displaying a collection of icons. The user can then select different icons (checkboxes) to do things like Copy or Delete.
Problem is, when I try to delete the actual file from the disk, I get an error telling me the file is "in use" ("vshost.exe", the VS runtime during testing).
I thought maybe it was because it still appeared in the window and was still in the ImageList, but even after removing it from both locations, I still get the error. My code:
Dim intCnt As Integer = 0
Do
ImageList2.Images.RemoveAt(intIconsChecked(intCnt)) ' Remove from collection.
lsvCollection.Items.RemoveAt(intIconsChecked(intCnt)) ' Remove from ListView window.
FileIO.FileSystem.DeleteFile(strIconPath & "\Icon" & Format(intCnt + 1, "00") & ".rsc") ' "+1" b/c Icons start with "01".
FileIO.FileSystem.DeleteFile(strIconPath & "\Icon" & Format(intCnt + 1, "00") & ".png") ' "In use" Error here.
".rsc" deletes just fine, so I know I'm deleting the correct file. Why does VS still think the file is still "in use"?
ThxMugsy,
Consider this as food for thought, even if you don't use it.
If you set it up right then you can control how it works. A reference is a reference and any left behind will cause you grief down the road when you try to delete things.
As an example, a simple class follows. It does *not* implement IDispose, although it does have a private shared Dispose method in it:
Public Class MyImages
Private _bmp As Bitmap
Private _name As String
Private _sourceFilePath As String
Private Sub New(ByVal bmp As Bitmap, _
ByVal name As String, _
ByVal filePath As String)
_bmp = bmp
_sourceFilePath = filePath.Trim
_name = name.Trim
End Sub
Public ReadOnly Property Bmp As Bitmap
Get
Return _bmp
End Get
End Property
Public ReadOnly Property Name As String
Get
Return _name
End Get
End Property
Public ReadOnly Property SourceFilePath As String
Get
Return _sourceFilePath
End Get
End Property
Public Shared Sub AddNew(ByRef miList As List(Of MyImages), _
ByVal imageFilePath As String)
Try
If miList Is Nothing Then
Throw New ArgumentNullException("The collection of MyImages cannot be null.")
ElseIf String.IsNullOrEmpty(imageFilePath) OrElse imageFilePath.Trim = "" Then
Throw New ArgumentException("The file path of the image cannot be null or empty.")
ElseIf Not My.Computer.FileSystem.FileExists(imageFilePath) Then
Throw New IO.FileNotFoundException("The file path of the image could not be located.")
Else
' Should do validation here that the file
' is actually an image but I'll not do this
' here...
Dim thisBMP As Bitmap = New Bitmap(imageFilePath)
miList.Add(New MyImages(thisBMP, GetFileNameWithoutExtension(imageFilePath), imageFilePath))
End If
Catch ex As Exception
Throw
End Try
End Sub
Public Shared Sub AddNew(ByRef miList As List(Of MyImages), _
ByVal imageFilePath As String, _
ByVal imageName As String)
Try
If miList Is Nothing Then
Throw New ArgumentNullException("The collection of MyImages cannot be null.")
ElseIf String.IsNullOrEmpty(imageFilePath) OrElse imageFilePath.Trim = "" Then
Throw New ArgumentException("The file path of the image cannot be null or empty.")
ElseIf Not My.Computer.FileSystem.FileExists(imageFilePath) Then
Throw New IO.FileNotFoundException("The file path of the image could not be located.")
ElseIf String.IsNullOrEmpty(imageName) OrElse imageName.Trim = "" Then
Throw New ArgumentException("The name of this image cannot be null or empty.")
Else
' Should do validation here that the file
' is actually an image but I'll not do this
' here...
Dim thisBMP As Bitmap = New Bitmap(imageFilePath)
miList.Add(New MyImages(thisBMP, imageName, imageFilePath))
End If
Catch ex As Exception
Throw
End Try
End Sub
Public Shared Sub Remove(ByRef miList As List(Of MyImages), _
ByVal imageFilePath As String, _
Optional ByVal removeFilePathAlso As Boolean = False)
Try
If miList Is Nothing Then
Throw New ArgumentNullException("The collection of MyImages cannot be null.")
ElseIf String.IsNullOrEmpty(imageFilePath) OrElse imageFilePath.Trim = "" Then
Throw New ArgumentException("The file path of the image cannot be null or empty.")
ElseIf Not My.Computer.FileSystem.FileExists(imageFilePath) Then
Throw New IO.FileNotFoundException("The file path of the image could not be located.")
Else
Dim findInstance As System.Collections.Generic.IEnumerable(Of MyImages) = _
From mi As MyImages In miList _
Where mi.SourceFilePath = imageFilePath
If findInstance.Count <> 1 Then
Throw New ArgumentException("The instance of MyImages specified by the" & vbCrLf & _
"image file path is not in the collection.")
Else
Dispose(findInstance.First)
If removeFilePathAlso Then
My.Computer.FileSystem.DeleteFile(findInstance.First.SourceFilePath)
End If
miList.Remove(findInstance.First)
End If
End If
Catch ex As Exception
Throw
End Try
End Sub
Private Shared Sub Dispose(ByVal instance As MyImages)
If instance IsNot Nothing AndAlso instance._bmp IsNot Nothing Then
instance._bmp.Dispose()
instance._bmp = Nothing
End If
End Sub
End Class
When you look through that, look specifically at the "Remove" method and in particular, look at the order in which things are done. That's the critical part in this.
I tested it with a simple form:
Two buttons, a checkbox, and a picturebox. I also copied a small folder full of image files to my desktop since I'll be deleting a file from it. Following is the code for Form1:
Option Strict On
Option Explicit On
Option Infer Off
Imports System.IO.Path
Public Class Form1
Private miList As New List(Of MyImages)
Private Sub Form1_Load(ByVal sender As System.Object, _
ByVal e As System.EventArgs) _
Handles MyBase.Load
Dim desktop As String = _
My.Computer.FileSystem.SpecialDirectories.Desktop
Dim imgFolder As String = _
Combine(desktop, "Images")
PictureBox1.BorderStyle = BorderStyle.FixedSingle
For Each imgFilePath As String In My.Computer.FileSystem.GetFiles(imgFolder)
MyImages.AddNew(miList, imgFilePath)
Next
btn_RemoveFirstImage.Enabled = False
CheckBox_RemoveSourcePath.Enabled = False
End Sub
Private Sub btn_ShowFirstImage_Click(sender As System.Object, _
e As System.EventArgs) _
Handles btn_ShowFirstImage.Click
Try
If miList.Count >= 1 Then
With PictureBox1
.SizeMode = PictureBoxSizeMode.Zoom
.Image = miList(0).Bmp
End With
btn_RemoveFirstImage.Enabled = True
CheckBox_RemoveSourcePath.Enabled = True
End If
Catch ex As Exception
MessageBox.Show(String.Format("An exception was thrown:{0}{0}{1}", vbCrLf, ex.Message), _
"Exception", MessageBoxButtons.OK, MessageBoxIcon.Warning)
End Try
End Sub
Private Sub btn_RemoveFirstImage_Click(sender As System.Object, _
e As System.EventArgs) _
Handles btn_RemoveFirstImage.Click
Try
If miList.Count >= 1 Then
MyImages.Remove(miList, miList(0).SourceFilePath, CheckBox_RemoveSourcePath.Checked)
End If
PictureBox1.Image = Nothing
btn_RemoveFirstImage.Enabled = True
CheckBox_RemoveSourcePath.Enabled = True
Catch ex As Exception
MessageBox.Show(String.Format("An exception was thrown:{0}{0}{1}", vbCrLf, ex.Message), _
"Exception", MessageBoxButtons.OK, MessageBoxIcon.Warning)
End Try
End Sub
End Class
Running it is straightforward:
Now when I click to show the first one:
A different image is shown because that first one no longer exists - either in the collection or in the folder.
Closing/disposing all references is the key and the order matters.
Something to consider the next time around. :)
Still lost in code, just at a little higher level. -
Can't open important file dropped my mistake in exe file from Firefox to supress Kasperksy
Hello and thanks for replying! Here are more details on this problem:
I saw two new exe files in my USB that seem to be related to a Firefox request yesterday which was to disable a Kaspersky option of some kind until Firefox could resolve the incompatibility. I OK'd it. TodayI was moving a file that contains three years of my research and it got dropped into one of these exe files by mistake and I now I cannot access it, copy it move it, or undo the prior move. The file that has trapped my research file is named 36f5e0470ef12f4ccf8016fOdcOf59 . I tried unlocking it, but could not access my file inside. All the unlocking seemed to do was change the name of the file. The files inside, along with my research file, are named: mrt.exe , mrttub.exe , and shutdown.req (this last also has dollar signs in the title which I'm afraid I cannot duplicate on my French keyboard.
I ran a virus check on both the interior file (my research file) and the exterior file (the former exe file) and at least can see that the names of my files come up in the search, so the interior file does not seem empty. There were no viruses found in either the exterior or interior file. I have not unplugged by USB yet and am not sure what to try next. My operating system is Windows XP 2002 in case that helps.
I have contacted Kaspersky as well but am not sure if these files were generated from them, from Firefox, or if it is malware. Thank you very much for your help. This would be a very great loss to me and any suggestions you might have would be most appreciated!
Reards,
ElizabethHello!
And thank you so much for answering!
These file names look similar to what is there for sure. But I don't think I want to delete them at this point. The problem is that I was moving a large file full of documents I use (about 100 files) that and that entire file dropped by mistake into this .exe file. Now hundreds of my files are trapped there and I can't seem to access or copy them. I would be afraid to delete the .exe file as I think it would probably delete my 100 documents along with it.
I guess what I need to know is how to open an .exe files in a way that lets me retrieve my document. Maybe I could do something that would give me the right to access it? Right now it is read only, and it does not seem to let me change the status, or to open my file sitting inside it.
It is like a dog who ate my supper!
Thanks again for your help!
Elizabeth -
Excel invalid path in exe file
Hi,
I have an issue with my application I'm using the report file generation tool to read data from an excel file and I receive an error
"Possible reason(s):
LabVIEW: File not found. The file might have been moved or deleted, or the file path might be incorrectly formatted for the operating system. For example, use \ as path separators on Windows, : on Mac OS, and / on UNIX."
when I open my xls file I was told that it is because the path in the exe file doesn't match the path during devellopement, in the exe file it seems to point to a dll file.
Does anybody have a solution?
Thank you
OlivierHi,
Does your program work fine in the development system, and the problem occures after building an exe-file ?
If that.s the case, I have had a similar problem. I solved it by adding some of the VIs in the _excelsub.llb located in "C:\Program Files\National Instruments\LabVIEW 8.2\vi.lib\addons\_office" to my project and then to "dynamic VIs and support files" in the build specification. I could not add the complete llb because some of the VIs where broken (maybe some issue with my installation.. ). If you look trough the code in the report VIs you use you find the VIs that are dynamicly linked and therefore have to be added to the build.
Good Luck !
/Sture -
How to use Client_Host without the exe file path
Hi,
i'm using oracle forms 10g,
in my application the users can upload any type of files (doc,xls,pdf,avi ,.. etc) and any user can download and open any of these files.
i implement this using client_host and including the path of winword.exe or AcroRd32.exe ,...
in many cases i don't know where these exe files are installed in the client side or whether it is installed or not.
i tried this command : client_host('calc.exe') it works and show me the calc without including the path of this exe file.
what i want to do is to just call the target file(doc,pdf,avi,..) in the client_host without having to precede this with the exe and path like the calc.exe example.
if you go to start->run and write for example c:\ahmed.mpeg , windows automatically call the real player or any other video software installed and open the movie.
can we implement this in oracle forms? and how?Hi, you attach a procedure to download a file in the local runs from Windows and to close it updates in the database and then delete the local directory
PROCEDURE OPEN_FILE (V_ID_DOC IN VARCHAR2)
IS
-- Open a stored document --
LC$Cmd Varchar2(1280) ;
LC$Nom Varchar2(1000) ;
LC$Fic Varchar2(1280);
LC$Path Varchar2(1280);
LC$Sep Varchar2(1) ;
LN$But Pls_Integer ;
LB$Ok Boolean ;
-- Current Process ID --
ret WEBUTIL_HOST.PROCESS_ID ;
V_FICHERO VARCHAR2(500);
COMILLA VARCHAR2(4) := '''';
BOTON NUMBER;
MODO VARCHAR2(50);
URL VARCHAR2(500);
Begin
V_FICHERO := V_ID_DOC;
-- Ruta y nombre del fichero temporal --
LC$Sep := '\';--WEBUTIL_FILE.Get_File_Separator ; -- 10g
LC$Nom := V_FICHERO;--Substr( V_FICHERO, instr( V_FICHERO, LC$Sep, -1 ) + 1, 100 ) ;
--LC$Path := CLIENT_WIN_API_ENVIRONMENT.Get_Temp_Directory ;
LC$Path := 'C:';
LC$Fic := LC$Path || LC$Sep || LC$Nom ;
-- Descargamos el fichero --
If Not webutil_file_transfer.DB_To_Client
LC$Fic,
'TABLE_NAME',
'ITEM_NAME',
'WHERE'
) Then
Raise Form_trigger_Failure ;
End if ;
-- Abrimos el fichero temporal en local --
LC$Cmd := 'cmd /c start "" /MAX /WAIT "' || LC$Fic || '"' ;
Ret := WEBUTIL_HOST.blocking( LC$Cmd ) ;
LN$But := WEBUTIL_HOST.Get_return_Code( Ret ) ;
If LN$But <> 0 Then
Set_Alert_Property( 'ALER_STOP_1', TITLE, 'Host() command' ) ;
Set_Alert_Property( 'ALER_STOP_1', ALERT_MESSAGE_TEXT, 'Host() command error : ' || To_Char( LN$But ) ) ;
LN$But := Show_Alert( 'ALER_STOP_1' ) ;
LB$Ok := WEBUTIL_FILE.DELETE_FILE( LC$Fic ) ;
Raise Form_Trigger_Failure ;
End if ;
-- Actualizamos el fichero en la BBDD --
If Not webutil_file_transfer.Client_To_DB
LC$Fic,
'TABLE_NAME',
'ITEM_NAME',
'WHERE'
) Then
NULL;
Else
Commit ;
End if ;
-- Eliminamos el fichero temporal local --
LB$Ok := WEBUTIL_FILE.DELETE_FILE( LC$Fic ) ;
Exception
When Form_Trigger_Failure Then
Raise ;
End ; -
Recover Deleted Offline File in Window's 7
Documents that were suppose to sync with the server had not synced in months. The filess I am sure were being saved to the offline file cache. The offline file cache was deleted by using microsoft hotfix 50561 (kb230738), reinitalizing the cache and correcting
the save path. The documents are very important. I researched and found the xp tool for recovering deleted offline files. csccmd.exe by using the command
csccmd.exe /extract /target:c:\docs /recurse
Is There a tool like this for windows 7? is there a way to recover the lost files. Previous versions and system restore was not enabled and I have not been able to enable then.Hi ShaneC_76,
Thanks for the post!
Please refer to<cite>
</cite>Windows Offline Files.
Check the 10. Restoring Offline Files In Windows Vista and 7.
Regards,
Miya
Please Note: Since the website is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.
This posting is provided "AS IS" with no warranties, and confers no rights. | Please remember to click "Mark as Answer" on the post that helps you, and to click "Unmark as Answer" if a marked post does not actually answer
your question. This can be beneficial to other community members reading the thread. -
Error in making an .exe file
hello..
i just make a labview file and tried to make an .exe file..
i show error.. missing of file path of an Icon.. it is in NI Library file..
Why it is not taking the path from thr..
it also showing error that.it may be due to the moving or deleting the File..
Please suggest a Solution to debugg this problem soon..
TIJU
Regards
Tiju ThomasTIJU wrote:
hello..
it also showing error that.it may be due to the moving or deleting the File..
Hai,
Try to collect all the files in a single folder and try to build exe again.
Hope this helps!
Mathan
Don't forget to rate a good answer. -
Through Java code I want to execute a exe file which is in aJar file
I am having some classes and an exe file in a directory. I have made them in to a Jar file. In a class file which is in that jar file i want to execute a Exe file which is also resides in that jar file. Is it possible to exexute that EXE file?
For Example....
1. Im having a directory named CLIENT.
2. In that directory I have 10 clss files and an EXE file.
3. These class files and EXE files are ziped in to a Jar file.
4. I have to give the Jar file to my client.
5. He can put that Jar file where ever he installed my product may be C driver or D drive like that
Now the problem is...
I want to execute the Exe File from one of the class where both the exe file and class file resides in the Jar file
This is my requirment
Can anyone Help to me to solve this problem?
Thanks in Advancd
Ibram Shah.A.M
([email protected])The answer is to extract the EXE into a temp directory, execute it, and delete it when you're done. For example:
//This is the path *inside* the JAR file!
InputStream in = getClass().getResourceAsStream("/resources/myprog.exe");
OutputStream out = new FileOutputStream("myprog.exe");
File file = new File("myprog.exe");
int data;
while((data = in.read()) >= 0) out.write(data);
in.close();
out.close();
//Execute the EXE here using java.lang.Runtime.exec()
if(file.exists()) file.delete();
...
Maybe you are looking for
-
I use Yahoo to send text messages. After logging into yahoo mail, on the right side of compose message is a drop down message with three options Email, Instance message or SMS (text). When I select SMS it starts like it is going to open the text box
-
I have a Mac Powerbook G4, running OS X 10.5.8. I'm getting messages from Google that Firefox is an old version and needs updating - so I went to the Firefox website and the message said that "Unfortunately the latest version of Firefox isn't compati
-
AES not reporting to Experian.
Hey everyone, my private loans were recently transferred to AES in early May. I have made the required private loan payments to AES for May and June. However, AES is still not reporting to Experian, and it is now July. I thought major student loan se
-
Class that checks words in a dictionary
I have to compare two files. One is a text file supplied by the user, the other is the dictionary. I have to check if all the words in the file are in fact in the dictionary. One method is to put both of the files in a string and then tokenize and co
-
Sync Books from one computer, movies from another?
The title describes it...is there a way to sync movies from one computer and my books from another computer to my iPad? I have a Macbook Pro that I use mainly for work, but also use it for some personal stuff. However, I keep all my movies on my iM