- Aug
- 168
- 4
I have a "prune" alias that's defined as follows:
prune=del /e /s /t /x /y /z /r /nnt
It's deleting significantly more than I expect as shown in the following output log. I had a few directories named "OptiTemp0", "OptiTemp1", and so forth, which I expected to delete with a simple "prune optitemp*" command. Look what I got instead:
C:\Users\JWILLI~1\AppData\Local\Temp> prune optitemp*
Removing C:\Users\JWILLI~1\AppData\Local\Temp\1jf3d0vi.rk5\
Removing C:\Users\JWILLI~1\AppData\Local\Temp\Adobe\Acrobat\10.0\
Removing C:\Users\JWILLI~1\AppData\Local\Temp\Adobe\Acrobat\
Removing C:\Users\JWILLI~1\AppData\Local\Temp\Adobe\
Removing C:\Users\JWILLI~1\AppData\Local\Temp\Microsoft Visual C++ 2010 x64 Redistributable Setup_10.0.30319\
Removing C:\Users\JWILLI~1\AppData\Local\Temp\Microsoft Visual C++ 2010 x86 Redistributable Setup_10.0.30319\
Removing C:\Users\JWILLI~1\AppData\Local\Temp\msohtmlclip\
Removing C:\Users\JWILLI~1\AppData\Local\Temp\msohtmlclip1\02\
Removing C:\Users\JWILLI~1\AppData\Local\Temp\OneNoteAttachments\
Removing C:\Users\JWILLI~1\AppData\Local\Temp\OneNoteRuntimeCache\14.0\OneNoteRuntimeCache_Files\
Removing C:\Users\JWILLI~1\AppData\Local\Temp\OptiTemp0\
Removing C:\Users\JWILLI~1\AppData\Local\Temp\OptiTemp1\
Removing C:\Users\JWILLI~1\AppData\Local\Temp\OptiTemp2\
Removing C:\Users\JWILLI~1\AppData\Local\Temp\VBE\
Removing C:\Users\JWILLI~1\AppData\Local\Temp\WPDNSE\
Removing C:\Users\JWILLI~1\AppData\Local\Temp\{1212D1F7-FFD5-4527-9D15-5B95142CD8CB}\
Removing C:\Users\JWILLI~1\AppData\Local\Temp\{40e9b1be-6b6d-4b04-884e-4cbb42134bbd}\
0 files deleted 4,096 bytes freed
I do not understand why it didn't delete the folder named "OptiTemp3", though it did delete the other three you see in the output. Nor do I understand why it did delete all kinds of folders that clearly don't match the pattern I specified.
Am I missing the obvious or is this thing not working properly? Thanks!
prune=del /e /s /t /x /y /z /r /nnt
It's deleting significantly more than I expect as shown in the following output log. I had a few directories named "OptiTemp0", "OptiTemp1", and so forth, which I expected to delete with a simple "prune optitemp*" command. Look what I got instead:
C:\Users\JWILLI~1\AppData\Local\Temp> prune optitemp*
Removing C:\Users\JWILLI~1\AppData\Local\Temp\1jf3d0vi.rk5\
Removing C:\Users\JWILLI~1\AppData\Local\Temp\Adobe\Acrobat\10.0\
Removing C:\Users\JWILLI~1\AppData\Local\Temp\Adobe\Acrobat\
Removing C:\Users\JWILLI~1\AppData\Local\Temp\Adobe\
Removing C:\Users\JWILLI~1\AppData\Local\Temp\Microsoft Visual C++ 2010 x64 Redistributable Setup_10.0.30319\
Removing C:\Users\JWILLI~1\AppData\Local\Temp\Microsoft Visual C++ 2010 x86 Redistributable Setup_10.0.30319\
Removing C:\Users\JWILLI~1\AppData\Local\Temp\msohtmlclip\
Removing C:\Users\JWILLI~1\AppData\Local\Temp\msohtmlclip1\02\
Removing C:\Users\JWILLI~1\AppData\Local\Temp\OneNoteAttachments\
Removing C:\Users\JWILLI~1\AppData\Local\Temp\OneNoteRuntimeCache\14.0\OneNoteRuntimeCache_Files\
Removing C:\Users\JWILLI~1\AppData\Local\Temp\OptiTemp0\
Removing C:\Users\JWILLI~1\AppData\Local\Temp\OptiTemp1\
Removing C:\Users\JWILLI~1\AppData\Local\Temp\OptiTemp2\
Removing C:\Users\JWILLI~1\AppData\Local\Temp\VBE\
Removing C:\Users\JWILLI~1\AppData\Local\Temp\WPDNSE\
Removing C:\Users\JWILLI~1\AppData\Local\Temp\{1212D1F7-FFD5-4527-9D15-5B95142CD8CB}\
Removing C:\Users\JWILLI~1\AppData\Local\Temp\{40e9b1be-6b6d-4b04-884e-4cbb42134bbd}\
0 files deleted 4,096 bytes freed
I do not understand why it didn't delete the folder named "OptiTemp3", though it did delete the other three you see in the output. Nor do I understand why it did delete all kinds of folders that clearly don't match the pattern I specified.
Am I missing the obvious or is this thing not working properly? Thanks!