Get the 5 error: the file is open

I'm having a problem with my VI. I want to create a file every minute and write at a high resolution for this minute. Then after the minute is made and im writing to another file, delete the file I wrote it just to. I can create files very well, but when it's time to delete a file, it gives me "error 5: file is open ' I read that there is a refernce open and that's why it does not work, but from what I can tell, Im closing all references.

I have a Win 7 computer, using the C - DAQ to acquire data, and everything works fine except the Remove feature. I have attached my vi for you to look at and would appreciate any help in this matter.

Thank you


Tags: NI Software

Similar Questions

  • How can I get the files to open with layer automatically the Background value - no layer 1?

    I open a lot of Illustrator EPS and PDF in Photoshop - I need to convert to TIFF.

    By default, they open with the layer on Layer 1. So I always have to change that to melt before the Save in tiff format.

    I know that its just an extra step, but when I think of the thousands of files I opened over the years which represents several hours of my life.

    Does anyone know a way to stop what is happening so that files open by default in the background?

    I know that I can create an Action - but its still an extra click so it won't save me any time.

    Also, I realize account opening in 1 layer retains transparency - I need from time to time. In an ideal world, I would have a setting in preferences to open in the background by default. Then in the import box that appears when I open a file, I would have a checkbox that says something like: "Allow the transparency" so that I could open in 1 layer on the rare occasions I need.

    Any ideas / opinions anyone?

    I would just do an action to flatten the image, then set it to a shortcut key.  I have this on my computer - just press F4 (my shortcut key) and it is flattened.

  • In Win 7 I get an error for various leave and- or "this action cannot be completed because the folder or the file is open in another program."

    I'm money than Win 7 Home Premium 64-bit SP1. The following information are linked to the steps to solve a persistent problem. Please read carefully and answer completely, since you asked users to report carefully on the long process of troubleshooting-advice you provided. I've been at it for six hours now in this round of troubleshooting.

    I tried to solve the continued permission errors and- or "this action cannot be completed because the folder or the file is open in another program."  This happens when attempts to cut-copy-paste------delete files (including the specific details listed below).  I searched on the Microsoft Support site to find answers to solve the problem, including the thread:

    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-files/in-Windows-7-getting-error-the-action-cant-be/449b2e05-8ED0-4A72-98bd-dde430d27e10?TM=1356626412321

    In accordance with this notice of sons, I emptied my Temp folder. The problem persisted. I downloaded the app 'Take Ownership' and also tried with periodic and sporadic success. It seemed to lengthen the time between recurrences of the problem - that it would allow me a half a dozen of all cutting------copy-paste and------or remove actions, until the error messages stop me to exercise that or any other action.  Then, I used the task Mgr end explorer.exe and reopen it to see if that makes a difference. For a while it worked, where I could make a few cut sporadically------copy-paste and------or delete actions. Today I'm at the point where I can preform one action, then I have to open task Mgr, end explorer.exe and then restart it to perform again a more cut-copy-paste or delete action. So, I have to return to the task Mgr and repeat the process above, for each new action I want to perform.

    I watched rained down in the above quoted thread, and followed Support Engineer Samhrutha G troubleshooting tips - method 4 - start the computer start-up in minimal mode and to use the diagnostic selective startup. In previous discussions, you have asked for advice as to what you were doing when the problem occurs, so I rated as below:

    I went into msconfig, unchecked "Load Startup items", went to the tab Serivce and allowed only half of them. He was 12 of 24 listed entries. During the tests, programs that are only open on my desk were two windows explore and Notepad to save the results. I got the following results:

    I moved the contents of a folder on my main C drive on my external drive of 3 TB. When I then tried to remove this folder on my external hard drive I got the message

    "You must be authorized to perform this action."

    You need authorization S-1-5-21-602162358-602609370-839522115-1004 to make changes to this file.

    After I clicked retry the record has been deleted. When I went to delete another folder in the same location on my external hard drive, he deleted the first time. He was then three other orders normally external hard disk.

    Then I tried to delete a file in a different location on the external hard drive and the message

    "You need give permission to delete this folder.

    When I clicked on continue what he deleted

    I cut and pasted a file from my external hard drive to my C drive. The record stuck on drive C. He pasted the folder on drive C, but the original folder remained on the external hard drive, even though it was a cut and paste. So when I went to delete the original folder that should have been cut, this message came:

    "You need permission to delete this folder.

    When I clicked on continue he grew up:

    ", You need permission to perform this action."

    You need authorization MYCOMPUTERNAME\MYCOMPUTERNAME to make changes to this file.

    When I clicked Try Again he deleted. But why he would leave the original behind if it was a cut and paste?

    After that, I tried to cut and paste a file to a location on the external external hard drive to another location on the hard drive, after I had seen the contents of that folder and went up a level to the folder parent to try the cut and paste. I received the following message:

    "Cannot perform this action because the folder or the file is open in another program

    Close the folder or file, and then try again.

    When I clicked Try Again it just repeat the error message, don't not allowing me to carry out the action and any other further reduction-copy paste and- or delete actions. I had not opened or closed all other folders, windows or applications, during the above test.

    Based on the Support Engineer Samhrutha G troubleshooting tips 4 method found on the following thread:

    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-files/in-Windows-7-getting-error-the-action-cant-be/449b2e05-8ED0-4A72-98bd-dde430d27e10?TM=1356626412321

    (same thread as cited previously) Then I went into msconfig > Services and reduced the number of items in the selective startup of a unit, as I started 11 - instead of 12 - 24 listed entries. Upon reboot, I decided to re - check msconfig. In msconfig > Services he showed 165 points. All had a check in the box next to them. These 165 points, 56 showed as "ongoing" the rest showed as stopped. It would be useful that I specifically what were these 56 entries?

    I continued with the troubleshooting test based on these settings initiated by Support Engineer Samhrutha G tips to reduce the selective startup (remember... it was 11 selected items)

    I started by I try to copy / paste a file from my external hard drive to my C drive. He has successfully completed. When I went back to the location of the original file on the hard disk external and clicked on undo move, the message came:

    "You need give the administrator permission to move this folder.

    When I clicked on continue as he moved the folder

    Then I tried to cut a file on the C drive and stick it in my external hard drive. He successfully completed the task. I then went back to the original location of the file on the C drive and tried to "Undo Move". I received the following message:

    "You need give the administrator permission to move this folder.

    By clicking on continue he grew up

    "You must be authorized to perform this action."

    By clicking on try again, just to repeat the error message and could not undo the move

    I tried to cut the entire contents of a folder on my C drive and stick it in a directory on my external hard drive. He was able to make the cut and paste but left a folder and two files back in the original location on my C drive. When I then went to cut the 3 elements he missed and move them to the location I had initially indicated on my external hard drive - for the first file he brought up in the dialogue that he was already stuck and I would like to merge, etc, that I clicked on none. the second file in the sequence that he grew up:

    "You must be authorized to perform this action."

    When I clicked on continue he grew up

    "You must be authorized to perform this action."

    You need permission from the administrator of the computer to make changes to this file.

    When I clicked on Try Again, he said.

    "Cannot find this article.

    It is no longer in C:\Projects\FolderName. Check the location of the item, and then try again.

    When I clicked Try Again he repeats just this same error message until I had to click Cancel to exit.

    The record was then only showed only two remaining elements. Because the first cut and paste involved 22 files and 3 folders, now I am unable to say which of them got ignored or lost. When I updated the location of the original files he showed that a single folder on the left and the content was empty. When I checked it now duplicated and pasted to the location of this folder on the external drive, he was there with the appropriate content. So he had left this file to the original location, but it was empty. Why this erratic behavior?

    When I went, then, remove this folder remaining from the original location, he deleted successfully. If you understand the above message, you notice that a file has disappeared.

    I now need to mention an incident b4 I started the process of solving problems today. I felt that you needed some context b4 I mention this. I had tried to cut a folder that contains 33 files and 6 records. The six files contained two subfolders whose combined total content contained 28 photos - a mixture of mp4, JPEG and mp3 - for a total of 61 files in the parent folder, I tried to cut and paste. I tried to paste the folder parent on my external hard drive. He started at the cut and paste normally 7.04 GB and towards the end, I got the message

    "Cannot perform this action because the folder or the file is open in another program

    Close the folder or file, and then try again.

    He was unable to finish when I clicked on Try Again, and I had to cancel out. However, he had removed all but one of the folders containing three files and it was not pasted into the new location. They were gone. I did a search on Win for some of the names of known files in this folder, and none appeared. Fortunately I had them on a second external drive. I plugged it to restore files, and of course that means more open task Mgr, ending explorer.exe and reopen in order to restore the files that explore had lost.

    After my results displayed above two rounds of by using a clean boot and selective startup, you can see that it is very difficult to actually diagnose the problem because it happens inconsistently. It is also very time consuming and very, very, very, very, very frustrating.

    I decided to try the method of disabling "just" thumb caching in the registry according to the advice of Robert P in the thread quotes. He said that I should go to Start > Run > gpedit.msc and "disable implementing caching thumbnails in hidden thumbs.db files" that was published of course in OK Win 7 > files, folders, and storage of the Microsoft Community forum. So I typed gpedit.msc in the search bar, and there was no instance of gpedit.msc, only setup.exe, I had to take was to gpedit.msc.  I installed it and after installation I typed again and he has not yet posted. So I rebooted. Restarted it showed up. When I went to run gpedit.msc, he brought to the top of the window with the error message group policy "MMC could not create the snap" when I looked up this article in the Microsoft Community, I found the link to the Win 7 forum, where the Star NIthyananda reported community
    "Gpedit.msc is not available in Windows 7 Home premium.  Discussion here:

    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-performance/when-i-open-gpeditmsc-on-my-computer-which-is/b1576a0f-348a-49D8-be70-d83d0f36e8aa?tab=AllReplies#tabs

    He then mentioned

    "If you want to disable caching of thumbnails, you can access the registry editor and go to changing the location according to the value [note: its mine incorrect grammatical syntax and not]".

    HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\DisableThumbnailCache ".

    with no information on how actually access HKEY_CURRENT_USER

    I found the appropriate information on how to access the registry in Win 7 running regedit, with information on how to navigate to the appropriate location in the registry to disable the thumbnail cache

    HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\DisableThumbnailCache

    but there is no entry "DisableThumbnailCache.

    I researched and found that you can add it in

    http://www.SevenForums.com/tutorials/10794-thumbnail-cache-enable-disable.html

    I downloaded the Disable_Thumbnail_Cache.reg file. After running Disable_Thumbnail_Cache.reg to merge it into the registry, I then returned to HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\

    and yet, there was no entry on DisableThumbnailCache

    The second method mentioned in

    http://www.SevenForums.com/tutorials/10794-thumbnail-cache-enable-disable.html

    has been to access via the Group Policy Editor

    I searched for the Group Policy Editor in Windows 7 search bar and it showed three entries

    A folder titled "for Windows 7 Group Policy Editor.

    a zip file named "add_gpedit_msc_by_jwils876_d3kh6vm.zip".

    Setup.exe

    The "Group policy for Windows 7 Editor" folder contained just the same two files listed below it

    So, I went ahead and ran the setup.exe and then restarted. After the reboot, I did a new search for the Group Policy Editor and he grew up just three results.

    I went back on the WindowsSeven Forum and found advice in the thread

    http://www.SevenForums.com/tutorials/3652-local-Group-Policy-Editor-open.html

    Title: how to open the local Group Policy Editor in Windows 7

    The tips were:

    To search for a group policy or the registry key, value, etc., see:

    Political research group

    The link above leads to:

    "The GPS is going to move to a new end area January!

    http://gpsearch.azurewebsites.NET
    You will be redirected in 15 seconds! »

    I waited about 3 minutes and it went nowhere, so I clicked on the http link and he grew up:

    GetCategoryDependencies() - 500ServerError

    This is where I could and I am now. And I can't "simply" disable caching of thumbnails. Can I return to my workspace and all simply continue with the editing work that I do, which is to cut, or -copy-paste and or delete files that I advance in my workflow. I can't do it without opening task and then Bishop ending and re-open explorer.exe for each order, I want to achieve.

    At this point now a few hours later including writing this message, I think that a new facility would be easier, more rapid and less headaches but that will solve the problem?

    Sense my frustration?  If this is not the case, let me make it clear. It's extremely frustrating. Why Windows doesn't have a fix for this is an error permanently?

    It was mentioned in the original thread that I cited that it would be better to start a new thread and continue to add my comment to the answers already posted 138. This problem has plagued me for months. Please notify

    As you have tried many fixes and changes to the registry, I suspect that your only option is a clean installation

    And having done so don't try not to cut/copy anything other than the data in the files in libraries in any other player. Copy of records of the victory Road will result in the registry locations becoming screwed.

    And if you really need locate the lbraries on another drive will redirect the location of other libraries that animate

  • Try to remove a CD image file, get the error message "this action cannot be completed because the file is open in another program.

    I am trying to remove a file from CD image (.img) of my office

    When I try to put it in the bin I get the message

    "The action cannot be completed because the file is open in another program close the file, and then try again"

    First, I checked the obvious things like if the .img file was mounted in a virtual drive - it isn't so I then used LockHunter to find which application is using the file so I can close by the Task Manager.

    Unfortunately LockHunter told me that the file is used by 'System' - which cannot be closed through the TM.

    Any help?

    The problem is that the program that allows you to mount the image always uses the image.  In my case I used the magical disc. Go to the start menu find the magic disk or folder folder, there should be an option to uninstall the magic disc. I tried UN-installing conrtol add and remove programs but it wouldn't let me. You can also click on computer in Start menu and see if the file you want to remove is always mounted (appears as a CD image). In this case that you can click the eject disc hit.

  • Trying to remove a .pdf file and get the error: the action cannot be completed because the file is open in another program.

    Believe me when I say that I restarted the computer and fresh with nothing open.  I tried to remove the .pdf and I always get the message below.  Any other tricks I can try?  HELP! 

    lololol.png

    So, we finally found the problem.  Since I had the Windows preview window selected in my settings, when you try to remove any PDF, Windows is the thought that the file is open on a preview pane.  Once we cut the setting, I could delete the PDF file.

  • The macro was interrupted because of an error, but the file remains open.

    I have a file that is opened by a macro Excel (VBA).  The macro was interrupted because of an error, but the file remains open.  I can't find any way to close.  The file is located on a server, not my hard drive.

    This is the code that opens the file/workbook

    Dim fso As Object
    Set fso = VBA. CreateObject ("Scripting.FileSystemObject")
    TT = fso. CopyFile (Sheet1.Cells (2: 17) & "List1.xlsm", Sheet1.Cells (2: 17) & "Merge1.xlsm", True)

    'bind to the data source document.
    wordDoc.MailMerge.MainDocumentType = wdFormLetters
    wordDoc.MailMerge.OpenDataSource Name: = Sheet1.Cells (2, 17) & "Merge1.xlsm", _
    SQLStatement: = "SELECT * FROM ' Sheet1$ ' WHERE sort_order IS NOT NULL" "
     
    "fill the body of the document with the fields in the data source."
     
    "first of all get the field names in the spreadsheet
    Set wkbk = Excel.Workbooks.Open (Sheet1.Cells (2: 17) & "Merge1.xlsm")
    Set headerRange = Excel.Range (wkbk. Sheets ("Sheet1"). Wkbk, Range("B1"). Sheets ("Sheet1"). Range ("IV1"). End (xlToLeft))
    headerValues = Application.Transpose (headerRange.Value)
    wkbk. Close False

    This issue is beyond the scope of this site (for consumers) and to be sure, you get the best (and fastest) reply, we have to ask either on Technet (for IT Pro) or MSDN (for developers)
    *
  • Is there a way to get the list of open URL of file (.dmp) incident, mdmp [NOT BE]

    Hello

    My Firefox session crashed, which was little in private meetings. I have the mdmp (.dmp file) dump file saved. Is there anyway that I can get the list of URLS open in private in windows.

    If so, how to read the file OR open it for debugging.

    Kind regards
    bnrsubs

    All data are kept in memory during the session in incognito mode and will never be saved on the hard disk, so these data are available for normal use and things like restore closed tabs and windows and cookies still function as in a normal session, but this data is deleted from all the private browsing mode Windows Open (tabs) are closed.

  • I accidentally loaded a .iso file on my PC and can not get rid of it. When I try to delete the file it says that the file is opened by the system. Also the file created 3 virtual drives like E:, F: and G: __Please let me know how I can remove this .iso

    I accidentally loaded a .iso file on my PC and can not get rid of it.  When I try to delete the file it says that the file is opened by the system.  Also the file created 3 virtual drives like E:, F: and G:
    Please let me know how I can remove this .iso file.

    Try Safe Mode. Repeatedly press the F8 key as the computer starts getting the menu diagnosis. Use the arrow key to select Mode without failure. MS - MVP - Elephant Boy computers - don't panic!

  • Smartphones blackBerry synchronization error - failed to get the file

    BlackBerry Torch 9860 software v 7.0 Bundle 2406

    Can someone help me with this error message of synchronization:

    "An error occurred during an attempt to access a record of the database of the device."

    Details below.

    engine 08:46:51.759 waiting for the user to input - message WPF event for messageId 15003 raised read 310 records
    08:46:51.762 engine work - full message event for messageId 15003 read 310 records
    08:46:51.859 CBBTransBase::GoToRecord - could not get the file FFFFFB45
    08:46:51.860 error information: 18008 (00004658) (KnownErrorWithLocalizedText), Description: an error occurred during an attempt to access a record of database device., File:.\BBTransBase.cpp, line: 736
    08:46:51.860 CRSyncUtil::GetTranslator: FeedProfileShim2Trans (responsible Trans) BlackBerry
    08:46:51.860 CRSyncUtil::FeedProfileShim2Trans: returns 0
    08:46:51.860 CRSyncUtil::LogFatalTransError: 'GoToRecord()' 'RimBB' translator for the "Contacts" application API returned empty error
    08:46:51.860 CBBTransContact::Close - clean temporary fixation for contacts files
    08:46:51.862 CBBTransBase::Close - Mode: 4
    08:46:51.862 CBBTransBase::Close - commit the change log
    08:46:51.862 CBBTransBase::Close - save information from source database device
    08:46:51.976 CBBTransBase::Close - peripheral close database
    08:46:51.976 CBBTransChangeLog::Close - close change log db. Record count: 474. Db file: C:\Users\Bob\AppData\Local\Research in Motion\BlackBerry Desktop\XCPCSync.OEM\SyncSDK.209.601\Translators\RimBB\Contract{8BCB53647E24F3BB61A8E73C4FDAB}.adt
    08:46:51.990 enter COLTransBase::Close - Mode - 4
    Synchronization of end of 08:46:51.991 with error 2

    Glad to hear it is working now.

    Don't forget to let us know if you have any other questions.

  • What kind of image is in a document. INDD so when the file is opened you get the message 'document contains 6 links to sources that are missing' and when you click OK to recreate a link to missing files, the document opens with the images?

    What kind of image is in a document. INDD so when the file is opened you get the message 'document contains 6 links to sources that are missing' and when you click OK to recreate a link to missing files, the document opens with the images? Missing images are not on my computer, but when the document opens the images are there. I can copy and paste the INDD images in Illustrator. Y files/images/I am able to copy and paste the images that have been incorporated into the INDD file in AI of the INDD file? If this is not what type of image am I copy and paste? Can I take the images that I stuck in there and place them in a new INDD document and have the images to reproduce without problems?

    The images could be anything - check the links Panel.

    What you see (and copy) is just the screen preview, not the actual image data.

  • Get a permissions error while trying to open Adobe illustrator "to work properly, Adobe Illustrator requires the permission of folder preferences to" reading / writing ".» The current permission setting is incorrectly set to "read only".

    Get a permissions error while trying to open Adobe illustrator "to work properly, Adobe Illustrator requires the permission of folder preferences to" reading / writing ".» The current permission setting is incorrectly set to "read only".

    I put permissions in the preferences and on hard drive - the same error.

    What is a current version of CC (CC2015.2.1) or an earlier version. Your best bet may be uninstalled, run the cleanup tool (Google it) and reinstall.

  • I get an error message 205, how do I get the file to download and recognize as legitimate?

    I get an error message 205, how do I get the file to download and recognize as legitimate?

    Help creating cloud / cloud creative applications download error

    http://helpx.Adobe.com/creative-cloud/KB/error-downloading-CC-apps.html

  • Using Player Adobe 11, now comes up with an error, once the file is opened. "Invalid Plugin detected, will waive the software Adobe reader." Close the program so cannot display PDF files. Running windows 7. I uninstalled and reinstalled the same Adobe. He

    Using Player Adobe 11, now comes up with an error, once the file is opened. "Invalid Plugin detected, will waive the software Adobe reader." Close the program so cannot display PDF files. Running windows 7. I uninstalled and reinstalled the same Adobe. Help

    It seems that something has been added in the folder on the drive. I would recommend http://labs.adobe.com/downloads/acrobatcleaner.htmluninstalling the program, running, removing any left over parts of the record player (this could be the problem), reboot and reinstall. If all goes well, that solved the problem. Future questions about the player, you should consider asking in the forum of reader, is not.

  • When I try to save a document, I get the message "the file is opened by another program or read-only. I need to change the name to save him.

    When I try to save a document, I get the message "the file is opened by another program or read-only. I need to change the name to save him. If I optimize a document, I rename it to save it. If I opened a PDF file of the architect drawings and turn them into fashion landscape so that they are easier to read, I have to rename it. I searched on the parameters to look for something that I could turn off, but I found nothing.

    Make sure that the preview in Windows Explorer option is disabled.

  • Error: "this action cannot be completed because the file is open in another program" when trying to remove the Windows Media Player folder to rebuild the database

    Original title: can't rebuild WMP database

    I tried to delete the folder 'Media Play' in App\Data but still received this message "the action cannot be completed because the file is open in another program '. '"

    I need to remove this folder in order to correct the problem with my playlists :(

    Hi Unpreghini,

    1. What is the problem you are having with playlists?

    Start the computer in safe mode and then try to recreate the database of Windows Media Player. To do this, try this step.
    Step 1: Start the computer in safe mode
    a. see start your computer in safe mode: http://windows.microsoft.com/en-US/windows7/Start-your-computer-in-safe-mode
    b. connection to the problem user account.

    Step 2: Rebuild the media player database
    a. Click Start, type run, click Run, type % LOCALAPPDATA%\Microsoft, and then click OK.
    b. Select the Media Player folder, and then click on Delete on the file menu.
    c. restart Windows Media Player.
    d. check if the problem persists.

    Note: Windows Media Player will automatically rebuild the database.

    Visit our Microsoft answers feedback Forum and let us know what you think.

Maybe you are looking for