Hot answers tagged

22

There's free software out there called WinMerge. You can use this software to match up duplicates. First, use File → Open, and choose both directories, with the folder with files you want to keep on the left, and those you do not on the right. Then, go to View, and deselect Show Different Items, Show Left Unique Items, and Show Right Unique Items. This ...


18

This can be done through the commandline by using the command forfiles Lets assume you have Folder A located in c:\temp\Folder A, and Folder B located in c:\temp\Folder B The command would then be: c:\>forfiles /p "c:\temp\Folder A" /c "cmd /c del c:\temp\Folder B\@file" After this is done, Folder B will have all files removed that are present in ...


8

You can use this PowerShell script: $folderA = 'C:\Users\Ben\test\a\' # Folder to remove cross-folder duplicates from $folderB = 'C:\Users\Ben\test\b\' # Folder to keep the last remaining copies in Get-ChildItem $folderB | ForEach-Object { $pathInA = $folderA + $_.Name If (Test-Path $pathInA) {Remove-Item $pathInA} } Hopefully it's fairly self-...


4

LPChip's answer is the better one. But because I've started to learn Python, I thought, "Heck, why not write a Python script as answer to this question?" Install Python You'd need to install Python before you can run the script from the command line. Create script Create a new file with for instance the name ...


2

1 - Select the first one and then press Ctrl. 2- Without releasing Ctrl move the cursor with the arrow keys, a rectangle (selector) will be seen 3 - When the selector is over the file, press Space Bar. You can continue selecting files as long as you don't release Ctrl.


2

Generic term is "disclosure widget". Third parties will of course use their own variations though. https://en.wikipedia.org/wiki/Disclosure_widget


2

Let's say I copy and paste files from folder A into folder B. Is there a way to delete all files from folder A that are in folder B? Besides manually selecting each one and deleting it, or ctrl-Z'ing right after the copy-paste Windows Method If you always need to copy files from one location into another and then afterwards ensure the files which ...


1

Do the following: Goto HKEY_CLASSES_ROOT\AllFilesystemObjects\shellex\ContextMenuHandlers Create a new key under ContextMenuHandlers with the value {C2FBB631-2971-11D1-A18C-00C04FD75D13}. Restart. Now you should have a Move to folder option. Always remember to take a backup of the registry before making any changes.


1

rsync rsync is a program used to synchronize directory. From the many (really many) options you have there are the self explaining --ignore-non-existing, --remove-source-files and --recursive. You can do rsync -avr --ignore-non-existing --recursive --remove-source-files B/ A -v if we suppose you have the files in the directory A (4) and B (4+2). A ...


1

Using Robocopy Windows Methods Below is a solution which will copy the files from one directory over to another directory and then once that is complete, the files successfully copied over are then removed from the original source location. In this below batch script example, it is using copy commands with the /MOV and /IS switches. Be sure to set the ...


1

Is there a way to remove files from a folder that are in another folder? Windows Method Yes, you can do this with batch script logic comparing file name and file date time stamp attributes, and then deleting those files from a location when not in another. Below is an example of logic using a batch script and setting the DeleteFromSource and Dest ...


1

So the reason for that happening (the box appearing) is that it's a control character. It's one of the several ASCII non-printable characters. Look into AutoHotKey to override the default behavior of the Control and Delete keys. Have a look at this here


1

This seems to be a known issue when installing the technical preview / insider preview builds. Microsoft have released a Patch for this. https://support.microsoft.com/en-us/kb/3020114


1

This regedit file will create the appropriate context menu shortcut to the shift-rightclick context menu: (courtesy sevenforums) Windows Registry Editor Version 5.00 [-HKEY_CLASSES_ROOT\Directory\shell\runas] [HKEY_CLASSES_ROOT\Directory\shell\runas] @="Open command window here as Administrator" "Extended"="" "HasLUAShield"="" [HKEY_CLASSES_ROOT\...


1

You can create a toolbar shortcut with the following command: C:\Windows\System32\schtasks.exe /run /TN "AdminCommandPrompt" Create a schedule task called AdminCommandPrompt that runs with the highest privilege, Action a command called %windir%\system32\cmd.exe, and allow it to be run on demand. Then create a shortcut that you call the scheduled task. ...


1

The way I've learned to handle this is to go to the root path (C:\Windows\System32\cmd.exe), create a shortcut to your desktop. On the shortcut, go to properties, advanced, check the box "run as administrator". or Type cmd, from Start, as Administrator. As follows: Click Start. In the Start Search box, type cmd, and then press CTRL+SHIFT+ENTER. If ...


1

The short answer is no. Even if there are many sources saying Explorer copy with VERIFY ON, Microsoft told officially that Some versions of the MS-DOS "User's Guide" and online Help indicate that the /V (verify) switch for the COPY and XCOPY commands actually compares the source and destination files to determine whether they are identical. This is not ...


1

I found an easier way to do it: we get the greyed "Expand" context menu only for FTP links. If, in the Quick Access folder, we multi-select (holding the Ctrl button) the FTP link(s) plus another normal one, then the normal context menu is displayed and we can unpin them all at once.



Only top voted, non community-wiki answers of a minimum length are eligible