Closing and Deleting Files
To use operating system resources efficiently, an application should close files when they are no longer needed by using the CloseHandle function. If a file is open when an application terminates, the system closes it automatically. The DeleteFile function can be used to delete a file on close. Mar 07, · You just need to close the application that running these files in the background. To close it, right click on taskbar and select "Taskmanager " In the 'process' tab click on the application which you think is executing these files and 'end process' Now you can move folders.
Last Updated: October 8, References. This article was co-authored by our trained team of editors and researchers who validated it for accuracy and comprehensiveness. There are 7 references cited in this article, which can be found at the bottom of the page. This how to become a good tv presenter has been viewedtimes.
Learn more This wikiHow teaches you how to delete regular files that you can't seem to delete on your computer. Most of the time, files you can't delete are being used by a program or a service; you can start your computer in Safe Mode to prevent the largest possible number of programs and services from running to address this issue. If the file is corrupted or your computer reports that it can't find the file, repairing your hard drive's disk errors may fix the problem.
On Android phones and tablets, you can use third-party apps to delete files on your phone or tablet. Keep what is the inflation tax mind that this article does not address deleting aa files, as doing so will prevent your computer from running properly if at all. Navigate to the folder containing the file.
Click the file and press the Delete closd. Empty the Trash bin. Try deleting the file again. For more advice, like how to resolve disc errors on your Windows computer or Mac, keep reading! Did this summary help you? Yes No. Log in Social login does not work in incognito and private browsers. Please log in with your username or email to continue. No account yet? Create an account.
Tips and Warnings. Related Articles. Article Summary. Method 1 of Click the Start button. Click Power. Your computer will begin to restart like usual, but don't release the Shift key until the next step. Once the blue screen appears, you can release the Shift key and proceed. Click Troubleshoot. It's in the s of the screen next to an icon that resembles tools.
W Advanced options. You'll find this in the middle of the screen next to an icon with three lines next to checkmarks. Click Startup Settings. This option is on the right side of the page next to an icon that resembles a gear. Click Restart. It's the button in the lower-right corner of the screen. Press the "Safe Mode" key. This key is usually 4.
If 4 doesn't work, try pressing F4 you may need to hold down Fn while pressing F4. Go to source. All rights reserved. This image may not be used by other entities without the express written consent of wikiHow, Inc. Find the file you want to delete. Use File Explorer to navigate to fo folder that contains the file that you want to delete.
Double-click a folder to open it. Select the file. Click once the file to select it. This will highlight it in blue. If there are multiple files hold " Ctrl " and click them to select multiple files. Press the Del key. Doing so will move the file into the Recycle Bin.
If you're still unable to delete the selected files, you may need to repair your PC's hard drive before attempting to delete the files again. Empty the Recycle Bin. Once you've moved the correct files into the Recycle Bin, you can proceed with removing them from your PC for good: Right-click the Recycle Bin icon.
Click Empty Recycle Bin in the resulting drop-down menu. Click Yes when prompted. Closs your computer. Do the following to exit Safe Mode: Click Start. Method 2 of Click the Windows Start menu. Type cmd. This displays the Command Prompt in the Windows Start menu. Right-click the Command Prompt. This command returns you to your root directory in the Command Prompt.
If you to need to change drives in the command prompt, simply type the drive letter followed by a colon i. This navigates to the folder the file is located in. To see a list of files and folders in a directory, type "dir" and press Enter. For example, "del testfile. This deletes the how to close a file. File Name. Method 3 of Close any open files. When repairing disk errors on Windows, it's wise though not strictly necessary to close any open files to prevent further issues.
Click an app that is open. Click "End Task' in the lower-right corner. Click This PC. It's in the sidebar menu to the left in File Explorer.
It has an icon that resembles a computer monitor. Right-clck your computer's how to close a file drive. It's usually the one marked C:below the "Devices and drives" heading. It may be named "OS C: " or have your computer name or drive name. Right-clicking it will display a drop-down menu below it. You can double-click the "Devices jow drives" heading to expand it if you don't see any hard drives listed there.
If your computer has more than one hard drive, click the hard drive on which the file you want to delete is stored. Click Properties. It's in the drop-down menu. A pop-up window will open. How to adjust a satellite dish dish network the Lcose tab. This is at the top of the pop-up window. Click Check. It's near the top of the window in the box labeled "Error Checking".
Click Scan drive when dile. Doing so allows Windows to begin scanning your hard drive for errors.
Was this information helpful?
Open a File Explorer window. Tip: A quick way to get to File Explorer is to press Windows Key + E. Locate the file that you want to delete. Select the file and press your Delete key, or click Delete on the Home tab of the ribbon. Dec 04, · how to close an open file in system I am in the process of creating a system image on windows I have 6 interrupted actions and they cannot be completed because the file is . To delete a file or folder, right-click its name or icon. Then choose Delete from the pop-up menu. This surprisingly simple trick works for shortcuts, files and folders, and just about anything else in Windows. To delete in a hurry, click the offending object and press the Delete key.
Locked files aka Files in use: I cannot move folders because they contain files previously in use. Not closed properly after a crash or a removed external HD. How can I find and close all open files under Windows 10?
Was this reply helpful? Yes No. Sorry this didn't help. Thanks for your feedback. The applications have been closed. The system restarted. Yet the problem remains. Windows continues to think that there are files in use, but only file explorer is running. I suspect they are leftover from hard restarts of perhaps the drive not being dismounted properly from windows or mac OS. This is too vague for me to give you any specific advice.
I merely tried to tell you how to unlock your files and folders, using a Safe Mode boot. Choose where you want to search below Search Search the Community. Search the community and support articles Windows Windows 10 Search Community member. I don't want to run checkdsk because it will remove needed files without warning. This thread is locked. You can follow the question or vote as helpful, but you cannot reply to this thread.
I have the same question Frederik Long. Rebooting will do the trick. How satisfied are you with this reply? Thanks for your feedback, it helps us improve the site.
K0MB Independent Advisor. Hello, my name is Marco and I am an Independent Advisor. I will do my best to help you. You just need to close the application that running these files in the background. To close it, right click on taskbar and select "Taskmanager " In the 'process' tab click on the application which you think is executing these files and 'end process' Now you can move folders.
In reply to K0MB's post on March 7, In reply to Frederik Long's post on March 7, Sorry I was not specific enough. This continues even after a restart. If the problem is still there after a restart, look in the 'startup' tab of the Taskmanager if the program does not connect every time. Then return to the 'process' tab to close it.
Do you mean, I should make a new folder, copy the files into the new folder and delete the old? I'm not sure what you mean as I'm not opening any applications and I have the system disconnected from the wifi offline. I am simply trying to move a folder that contains files the system has flagged as in use. Ideally, there would be a command or script I could run that would find all files that Windows has flagged as open and close them, thereby eliminating the 'file in use' error.
In your initial post you wrote: I cannot move folders because they contain files previously in use. If it show this message, it is because there is an application running in the background that you do not see, that's why I said to close what you find suspicious in the taskmanager. This site in other languages x.