Changes
Page history
Update windows folders tips and tricks
authored
Jul 26, 2017
by
Robin Alazard
Hide whitespace changes
Inline
Side-by-side
windows-folders-tips-and-tricks.md
View page @
4cb53aa3
...
...
@@ -2,9 +2,44 @@
`ROBOCOPY folder1 folder1 /S /MOVE`
Ref: https://stackoverflow.com/a/30138960/6267305
Ref
(s)
: https://stackoverflow.com/a/30138960/6267305
Quick infos:
-
same
*src*
and
*dst*
: magic happens here, just works (tm)
-
`/S`
: skip copying/moving empty folders
-
`/MOVE`
: makes it almost a no-op, just pointer stuff
\ No newline at end of file
-
`/MOVE`
: makes it almost a no-op, just pointer stuff
# Fast delete a folder
```
del /f/s/q foldername > nul
rmdir /s/q foldername
```
Ref(s):
-
https://stackoverflow.com/a/6208144/6267305
-
http://mattpilz.com/fastest-way-to-delete-large-folders-windows/
Quick infos:
-
`del`
is the absolute fastest way to delete files, BUT it leaves the folders intact
-
`rmdir`
then removes all the empty folders
### Add "Fast Delete" to right-click context menu
Just save the following as a
*.reg*
file and execute it.
```
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\shell\Fast Delete]
"Icon"="%SystemRoot%\\SysWow64\\SHELL32.dll,234"
[HKEY_CLASSES_ROOT\Directory\shell\Fast Delete\command]
@="cmd /c \"echo Fast Deleting folder '%1' ... && del /f /s /q \"%1\" > nul && rmdir /s /q \"%1\"\""
[HKEY_CLASSES_ROOT\Directory\shell\Fast Delete (With Move)]
"Icon"="%SystemRoot%\\SysWow64\\SHELL32.dll,234"
[HKEY_CLASSES_ROOT\Directory\shell\Fast Delete (With Move)\command]
@="cmd /c \"echo Fast Deleting folder '%1' ... && move \"%1\" \"%1.deleted\" && del /f /s /q \"%1.deleted\" > nul && rmdir /s /q \"%1.deleted\" && pause\""
```
\ No newline at end of file