Menghapus Temporary File Windows 10

On

Similar to Pagefile.sys, Swapfile.sys is a Windows 10 feature that takes advantage of space on your hard drive when your RAM either fills up or can be used in a more efficient way.

Menghapus Sampah yang ada di Windows 10. Channel Discord: Streaming at Gamely: 11579959. Cara membersihkan file sampah di laptop dan komputer tanpa software.

You might be asking: Why do I need a swap file when I already have a page file? The swap file deals with modern Windows apps (the kind you download from the Windows Store), moving them to the hard drive in a sort of hibernation state when not in use, while the page file takes individual pages (4KB in size) of a process and moves them back and forth as needed. The page file and the swap file work in conjunction — disabling the page file without editing your Registry will also disable the swap file.

File temp atau disebut juga file sementara/temporary biasanya selalu ada pada hampir semua sistem operas/OS, baik untuk mobile atau desktop. Ada beberapa cara untuk menghapus file temp Windows Phone, salah satunya adalah dengan mencabut baterai seperti yang biasa dilakukan oleh beberapa pengguna device lain. Temporary files di Windows 7 / Vista, dapat dihapus dengan bantuan perintah tunggal dalam dialog Run. Metode 1: Menghapus file sementara pada Windows 8 / 8.1 / 10 Pindahkan pointer mouse ke sudut kanan layar, dan klik pada kotak ' Search '.

The debate over whether or not your page file and swap file are really necessary rages on. Many Windows users claim their devices are much faster without them, while others will feel their blood pressure rise as they wait for those systems without the files enabled to crash and burn (the latter figuratively, of course).

Let's take a closer look at Swapfile.sys, whether or not you need it enabled on your Windows PC, and how to disable it if you choose to run without.

What does Swapfile.sys do when it is enabled?

Let's say you have a PC with 2GB of RAM — this is the minimum recommended amount of RAM for 64-bit Windows 10. That RAM is going to fill up awfully fast if you're a multitasker, and free RAM is needed to keep your PC running smoothly. Don't get me wrong; utilizing all your RAM isn't a bad thing, but not having any RAM leftover for incoming processes is a different story.

Rather than having Windows completely grind to a halt for lack of RAM, any running but unused Windows apps — e.g. any minimized to the taskbar — will be moved over to your hard drive where they will reside in a swap file until you need them again. This frees up some space in your RAM for those incoming processes.

If you attempt to access an app that currently resides in the swap file and you have insufficient space in your RAM, another process in your RAM will be swapped out to make room for the app you'd like to use. Swapfile.sys works in conjunction with Pagefile.sys to help keep RAM freed up.

What happens when Swapfile.sys is disabled?

Without a swap file, some modern Windows apps simply won't run — others might run for a while before crashing.

Not having a swap file or a page file enabled will cause your RAM to work inefficiently, as it has no 'emergency backup' in place. If an app has a 2GB memory footprint, that footprint will stay on your RAM whether or not it's all utilized. When your RAM is full and has no file on your hard drive to move to, it will begin to cannibalize itself, which causes apps running normally to malfunction. At this point, you'll likely see a spectacular crash.

Less stress?

Some users claim that disabling Swapfile.sys will cause less stress on your hard drive, and this is indeed true. The question, though, is whether or not you will really notice. It's hard to say and really depends on your specific hardware, but most drives will last so long in the hands of regular users that having a swap file won't make a discernible difference regarding the longevity of your storage.

Also concerning your hard drive is space on smaller devices; usually tablets. For example, you might be tempted to disable the swap file and page file on your tablet with a 32GB hard drive. The problem then is an unstable RAM environment and a device that can crash at any time.

What do we recommend?

Unless you're an experienced Windows user who can deal with the potential fallout of tweaking these settings, leave the swap file and page file on your PC alone. By default, Windows will automatically size these files as necessary, and it does a decent job of it.

Most people hoping to speed up their device or create more room on their hard drive by disabling Swapfile.sys or Pagefile.sys should look at an alternative route, namely adding more RAM or a new solid-state drive. Disabling the swap file and page file shouldn't be a permanent solution.

How do I disable Swapfile.sys?

Note: Do not attempt this method unless you're an experienced user. Disabling the swap file and page file can lead to unexpected results.

If you really want to disable the swap file on your PC, you can do so without editing the Registry. Following this process, you will also disable the page file.

  1. Right-click the Start button.
  2. Click Control Panel.
  3. Click System.

  4. Click Advanced system settings.
  5. Click the Advanced tab at the top of the window.

  6. Click Settings in the Performance frame.
  7. Click the Advanced tab at the top of the window.

  8. Click Change in the Virtual memory frame.
  9. Click the checkbox next to Automatically manage paging file size… so that the checkmark disappears.

  10. Click No paging file.
  11. Click Set.

  12. Click Yes.
  13. Click OK.

  14. Restart your computer.

Both Swapfile.sys and Pagefile.sys will be gone when your computer restarts.

To reinstate them both, simply follow steps 1-9 so that a check mark reappears in the check box and then restart your computer.

How to disable Swapfile.sys without also disabling Pagefile.sys

Note: Do not attempt this method unless you're an experienced user. Editing your PC's Registry can lead to irreversible and fatal errors.

If, for whatever reason, you want to remove Swapfile.sys but leave Pagefile.sys intact, you can do so through the Windows registry.

  1. Right-click the Start button.
  2. Click Run.
  3. Type regedit.exe and hit Enter on your keyboard.

  4. Double-click HKEY_LOCAL_MACHINE
  5. Double-click SYSTEM.

  6. Double-click CurrentControlSet.
  7. Double-click Control.

  8. Double-click Session Manager.
  9. Click Memory Management.

  10. Right-click a blank area in the right-side frame.
  11. Click New.

  12. Click DWORD (32-bit).
  13. Type SwapfileControl and hit Enter on your keyboard.

  14. Restart your computer.

Free Temporary File Storage

If you'd like to re-enable Swapfile.sys, head back into the registry and delete the SwapfileControl entry.

Your opinion

What do you have to say about Swapfile.sys? Are you on the side of Let It Be or are you on the side of Let It Be Gone? Let us know in the comments section!

One really easy way to free up some disk space in Windows is to delete temporary files, sometimes referred to as temp files. Temp files are exactly what they probably sound like: files that your operating system only needed to exist temporarily while in use, but are now just wasting space.

Menghapus Temporary File Windows 10

Most temporary files are stored in what's the called the Windows Temp folder, the location of which differs from computer to computer, and even user to user. The steps for that are below.​

Manually cleaning out the Temp folder in Windows usually takes less than a minute but it could take longer depending on how large the collection of temporary files is.

You can delete temp files in the way outlined below in any version of Windows, including Windows 10, Windows 8, Windows 7, Windows Vista, and Windows XP.

How to Delete Temporary Files in Windows

Follow these simple steps to delete your temporary Windows files:

  1. Windows 10: Select the Cortana search box just to the right of the Start button on the taskbar.

    Windows 8.1: Right-click or tap-and-hold the Start button and then choose Run.

    Windows 8.0: The easiest way to access Run is from the Apps screen.

    In earlier versions of Windows, choose Start to bring up the search box or find Run.

    Another way to open the Run dialog box is to enter the WIN+Rkeyboard shortcut.

  2. In the Run window or search box, enter the following command exactly:

    This command, which is technically one of many environment variables in Windows, will open the folder that Windows has designated as your Temp folder, probably C:Users[username]AppDataLocalTemp.

  3. Select all of the files and folders within the Temp folder that you want to delete. Unless you have a reason to otherwise, select them all.

    If you're using a keyboard or mouse, click one item and then use the Ctrl+A keyboard shortcut to select every item within the folder. If you're on a touch-only interface, choose Select all from the Home menu at the top of the folder.

    You don't need to know what each temp file you're going to delete is for, or what or how many files are included in any subfolders you select. Windows won't let you delete any files or folders that are still in use. More on that in a bit.

  4. Delete all the temporary files and folders you've selected, either using the Delete key on your keyboard or the Delete button from the Home menu.

    Depending on your version of Windows, and how your computer is configured, you might be asked to confirm that you wish to Delete Multiple Items. You may even have to select Yes on a special Confirm Multiple File Delete window that appears. Handle any messages about hidden files in this folder the same way — it's fine to delete those, too.

  5. Choose Skip if you're presented with a File In Use or a Folder In Use warning during the temporary file deletion process.

    This is Windows telling you that the file or folder you're trying to delete is locked and still in use by a program, or maybe even Windows itself. Skipping these allows the deleting to continue with the remaining data.

    If you're getting a lot of these messages, check the Do this for all current items checkbox and then select Skip again. You'll have to do it once for the file messages and again for the folder ones, but warnings should stop after that.

    Rarely will you see a message like Error Deleting File or Folder that will stop the temp file deleting process completely. If this happens, restart your computer and try again. If even that doesn't work, try starting Windows in Safe Mode and repeating the steps above.

  6. Wait while all the temp files are deleted, which could take anywhere from a few seconds if you only have a few files in this folder, and up to several minutes if you have many and they're large.

    You won't be prompted when the process is complete. Instead, the progress indicator will just disappear and you'll see your empty, or almost empty, temp folder up on the screen. Feel free to close this window.

    If you happen to be deleting so much data that not all of it can be sent to Recycle Bin, you'll be told that they'll be permanently removed.

  7. Finally, locate Recycle Bin on your Desktop, right-click or tap-and-hold the icon, and then choose Empty Recycle Bin.

Confirm that you want to delete the items, which will permanently remove those temporary files from your computer.

The next time you delete temporary files in Windows, feel free to hold down Shift as you delete the files. It's a trick that will skip over storing them in Recycle Bin, essentially 'permanently' deleting them and saving you this last step.

You now, in the short term, have an empty temporary files section.

Temporary File Folder

Using a Command Line Command

The steps shown above are considered the normal way to delete temporary files, but you, of course, have to do that manually. If you'd rather, you can build your own mini program that can delete these temp files automatically with a simple double-click/tap of a BAT file.

Menghapus Temporary File Windows 10

You can do this using the rd (remove directory) Command Prompt command to delete the entire folder and all of the subfolders.

Type the following command into Notepad or some other text editor, and save it with the .BAT file extension:

Menghapus Temporary File Windows 10 Access Denied

The q parameter suppresses confirmation prompts to delete the files and folders, and s is for deleting all the subfolders and files in the temp folder.

If the %temp% environment variable is for some reason not working, feel free to substitute in the actual folder location mentioned in Step 2 above, but make sure you type the correct folder path, and to be safe, surround the path in quotes like this:

Other Types of Temporary Files in Windows

The Windows Temp folder isn't the only place that temporary files, and other no-longer-needed groups of files, are stored on Windows computers.

The Temp folder that you found in Step 2 above is where you'll find some of the operating-system-created temporary files in Windows, but the C:WindowsTemp folder contains a number of additional files that you no longer need to keep.

Feel free to open that Temp folder and delete anything you find in there.

Your browser also keeps temporary files, usually in an attempt to speed up your browsing by loading cached versions of web pages when you revisit them. See How to Clear Your Browser's Cache for help deleting these types of temporary files.

Other, harder-to-find locations contain temporary files, too. Disk Cleanup, a utility included in all versions of Windows, can help remove the contents of some of those other temp folders for you automatically. You can open that in a Run dialog box (WIN+R) via the cleanmgr command.

Movie

Dedicated 'system cleaners' like the free CCleaner program can make this, and similar jobs, really easy. Many free computer cleaner programs exist to choose from, too, including Wise Disk Cleaner and Baidu PC Faster.

Check how much free space your hard drive has, both before and after you delete temporary files, to see how much space you recovered.