Skip to main content

Here's what a VPN can't protect you from (but you need to use it)

The abbreviation " VPN " has slowly become established among average Internet users, which is certainly good, but the problem is that people have started to see VPN as the ultimate solution to all problems.

The fastest way to delete large amounts of files in Windows

The fastest way to delete large amounts of files in Windows

If you've ever tried to delete a lot of files that take up a lot of disk space, you know how long this process can take. Classic deleting files in Windows can take time if those files are large. What is the best solution in that case?

Delete

This is the worst possible method in this case. This is the classic folder highlighting, right click > Delete. Or the Del key on the keyboard. Windows Explorer delete process will prepare folders and files to delete, calculate sizes, paths… simply takes too long.

Delete

Shift + Delete

A slightly faster method is this and you may have used it. It differs in that the trash can is skipped and all files disappear from the disk immediately. However, with this method, the deletion process itself takes a long time, so it is not recommended.

"Del" and "rmdir" commands

We came to the CMD command and the first one is "rmdir" in combination with the flags /s and /q. So, the command would now go like this:

rmdir /s/q foldername

The second command is "del" in combination with "rmdir". First use "del" to remove all files within the folder, then "rmdir" to remove the folder structure:

del /f/s/q foldername > null
rmdir /s/q foldername

From the tags we have:

  • / Q - Quiet mode: the computer will not ask us for each file if we are sure we want to delete it
  • / S - executes the command for each file and folder below the selected one
  • / F - delete read-only files
  • > null - output goes to null which means it will not show it to us, saving time

This method is significantly faster than the classic "rmdir" for removing files and folders together.

The test was done on 960 sample files, 5.85MB each in 303 folders and these are the results:

  • First method: 14.98 seconds average
  • Second method: 12.82 seconds average

You may not notice the difference, it's only 2 seconds, but here are the results for 1,159,211 files whose size is 28.3GB in 146,918 folders:

  • First method: 2 hours and 25 minutes on average
  • Second method: 53 minutes on average

The difference, as you can see, is huge! (source)

Create a quick delete shortcut

Ok, once we've found that the second method with "del" plus "rmdir" is the best, we'll create a batch file and integrate it into the context menu (the menu that appears when you right-click a folder) so we don't have to manually type in CMD each put command.

1) Open Notepad and paste this script:

@ECHO OFF
ECHO Delete folder: %CD%?
PAUSE
SET FOLDER=%CD%
CD /
DEL /F/Q/S "%FOLDER%" > NUL
RMDIR /Q/S "%FOLDER%"
EXIT

and save in  C:\Windows as e.g. "Fastdel.bat". Be careful not to save it as .txt! Select "All files" below the file name and manually enter .bat at the end of the file name.

1) Open Notepad and paste this script:

2) Open RegEdit

Press Windows + R to display the RUN window and type regedit then click ok.

3) Add a script to Regedit

  • Go to this path: HKEY_CLASSES_ROOT\Directory\shell\
  • Right-click on the "shell" and then New > Key
  • Put Fast Delete after the name
  • Right-click on Fast Delete and New > Key
  • Add a name: command
  • Double click on the default key (located on the right) and for the value put:
    cmd /c "cd %1 && Fastdel.bat"
  • Restart the Windows Explorer process from Task Manager
3) Add a script to Regedit

4) Test

Right-click on a folder you want to delete with this method and select "Fast Delete".

Right-click on a folder you want to delete with this method and select "Fast Delete".

A CMD will appear asking "Delete folder: path/to/folder?“ And just press any key to confirm (say enter).

A CMD will appear asking "Delete folder: path/to/folder?“ And just press any key to confirm (say enter).

If you accidentally click Fast Delete, then you can cancel by pressing ctrl + c when it asks you if you want to delete the this-and-that folder, the script is aborted.

Comments

Popular this month

Facebook is introducing another new service

Facebook is preparing another novelty for us. This is the  " Listen With Friends " application that will soon appear on chats , and with it, you will be able to listen to music with the person you are corresponding with.

Interesting gadgets for less than $5 [2. part]

Due to the great interest in the article in which I presented several interesting gadgets that cost less than $ 5 , I decided to compile another list. Note :  all the products I listed below can be purchased on various sites, but I posted links to Aliexpress because I have bought a lot there and have the most experience.

Android TV Box - a guide to buying up to 30 euros

What is Android TV Box? This is a great solution if you want to add a " Smart " function to an existing TV . With this device, you can watch live TV online for free (later on), play games, upload all kinds of files, watch movies (from USB, over the internet, phone…), listen to songs, surf the internet, use social networks… or everything you can on your Android phone. It is usually a cube-shaped device (but it doesn't have to be) and has various inputs and outputs. It connects to the TV via an HDMI cable , but some also have an AV output over 3.5mm that goes to the familiar 3 cinches, so you can also connect to an older TV (even to SCART if you have an adapter). It is also standard for these devices to have WiFi , LAN port (RJ45), IR Remote , at least 2 USB ports , support for high definition video formats (these cheap ones often have 4K support), and usually come with a remote .

Android ROOT - programs and applications

I have already written several posts on how to root an Android device, so I decided to make one in which I will unite everything.

Serbia will soon have the strongest supercomputer in the Balkans!

By upgrading the "Paradox" supercomputer, Serbia will receive in the next few months the most powerful supercomputer in the Balkans, worth around one million euros! Today, the " Paradox " supercomputer has 1,100 processors and operates at seven teraflops, which is 7,000 billion operations per second. With the upgrade, the computer will have 5,000 processors and will work at 40 teraflops, or 40,000 billion operations per second. It can currently store 60 terabytes (60,000 gigabytes) of data.