![]() It checks to see if the current directory is now the same as the target directory, and prints an error message and quits if it is not.It uses pushd to save the current directory, then switch to the target directory, redirecting any errors to nul for a cleaner command-line experience (and cleaner logs).It checks if a command-line argument has been passed, and prints usage information and quits if not.If /i not = goto wrongdirĮcho Delete all of the contents of a directoryĮcho %0 is a substitute for deltree, it recursively deletes the contentsĮcho (files and folders) of a directory, but not the directory itselfĮcho DIR is the directory whose contents are to be deletedĮcho Could not change to the target directory. bat ?): :: dt is a Windows-compatible version of the deltree command It's also as safe as can be, with error-checking everywhere possible, and also as user-friendly as possible, with built-in docs.ĭt.bat (or dt.cmd for the kids whatever, I'm old, I use. It doesn't set any environment variables and it doesn't use any loops. It's probably about as simple and efficient as is possible with a command-line script instead of outright writing an actual executable. ![]() Here's a solution that works without resorting to third-party tools. The deltree command could do this, but Micrsoft, in its infinite "wisdom" removed the command and didn't port it to Windows. To be clear, rd /s /q c:\foobar deletes the target directory in addition to its contents, but you don't always want to delete the directory itself, sometimes you just want to delete its contents and leave the directory alone. With file filters and easy selection tools, it allows you to get rid of the duplicate files you no longer need, so as to declutter your system and have the computer run faster.User340956 was painfully close to the solution, but you know what they say about close… Removing duplicates manually is a much too tedious job, so a dedicated application such as PassFab Duplicate File Deleter surely comes in handy. You can select any of the duplicates and remove them with ease. The results of the scan are displayed in a list, right next to a statistical review of the file types. Moreover, you can add a folder path as an exception to be ignored during the scan. ![]() Hidden, system and zero-byte files are excluded by default, but you can change these settings. PassFab Duplicate File Deleter can search for duplicates by content or by file name and filter the results by file size and type. Once you do so, the application moves on to the next step, allowing you to choose search filters. The main window greets you with a big button that allows you to select the folder to analyze. You will be amazed about the simplicity of this application. ![]() The application comes with support for various file types, allowing you to find and remove duplicates in your photos, audio files, videos and other media files, documents and so on. Its purpose is to provide a quick and easy solution even for situations when there are lots of files piling up on your computer. A quick way to find duplicatesĪs you can probably imagine, this particular application is designed to detect duplicate files on your machine and help you remove them with ease. PassFab Duplicate File Deleter is one of them. Luckily, when it comes to handling duplicates, there are various alternatives to choose from. Finding and removing duplicate files that clutter the system is one of the operations that need performing once in a while, so as to free up storage space and enhance the computer’s performance. Whether you like it or not, computer maintenance is mandatory to keep your system optimized and running at top performance.
0 Comments
Leave a Reply. |