Difference between revisions of "Lessons Learned"

From truxwiki.com
Jump to navigation Jump to search
Line 5: Line 5:
 
Usually, they will contain filenames that Windows thinks doesn't exist.
 
Usually, they will contain filenames that Windows thinks doesn't exist.
 
To delete the folder, use the "escaped" name which tells Windows to not think too hard when interpreting the filename.
 
To delete the folder, use the "escaped" name which tells Windows to not think too hard when interpreting the filename.
<syntaxhighlight lang="bat">
+
<source lang="bat">
 
rmdir /s /q \\?\H:\Trux\Truxton\55E3AF7109F30CA7
 
rmdir /s /q \\?\H:\Trux\Truxton\55E3AF7109F30CA7
</syntaxhighlight>
+
</source>
 +
 
 +
=Deleting Folder Structure 2=
 +
Sometimes, when expanding archives, folder ownership will be reset.
 +
To delete them, you must first take ownership and reset the security.
 +
<source lang="bat">
 +
takeown /a /r /d Y /f D:\Temp
 +
icacls D:\Temp /t /grant administrators:F
 +
rmdir /S /Q D:\Temp
 +
mkdir D:\Temp
 +
</source>

Revision as of 04:03, 10 December 2020

This page contains some solutions to situations we've encountered during the life of Truxton

Delete Folder Structure

When expanding PST files, sometimes folders can be left behind. Usually, they will contain filenames that Windows thinks doesn't exist. To delete the folder, use the "escaped" name which tells Windows to not think too hard when interpreting the filename.

rmdir /s /q \\?\H:\Trux\Truxton\55E3AF7109F30CA7

Deleting Folder Structure 2

Sometimes, when expanding archives, folder ownership will be reset. To delete them, you must first take ownership and reset the security.

takeown /a /r /d Y /f D:\Temp
icacls D:\Temp /t /grant administrators:F
rmdir /S /Q D:\Temp
mkdir D:\Temp