Date: prev next · Thread: first prev next last
2013 Archives by date, by thread · List index


(And this time to the list... I keep forgetting replies don't automatically go to the list!)

Doug wrote:
On 09/26/2013 02:34 PM, James Knott wrote:
Doug wrote:
Using the command prompt in administrator mode, there is a subdirectory
that I can't uninstall. How do you get elevated privileges in the
command prompt? (Win 7 PRO-64.)

Create an icon. on the desktop or Start menu, to run a command propmpt.
You can then right click on it and select "Run as administrator".  You
can even change the properties,so that it always runs as administrator.


I have that already. I am running command prompt in admin mode--I set
that up with an icon quite some time ago. But there is one subdir that
still will not delete, using    rmdir "\dirname" /q /s    which will
delete other stubborn directories (and has).

Sometimes folders can become protected so they can't even be deleted while running as an administrator. However, administrators *can* take ownership of any file or folder, then change the permissions and do what they like with it. Be careful though - deleting critical files could stop your computer booting, and just taking ownership or permissions away from the internal "user" account which should have them could cause problems. The files may be protected for good reason!

From Explorer:
- Right click the affected file or folder and select "Properties"
- Select "Security" tab
- Click "Advanced"
- Select "Owner" tab
- Click "Edit"
- Set the owner to your administrator account
- OK everything
- I'm not certain, but you might have to go back into folder Properties > Security and add permissions to give your administrator account full control (you should be able to do this now you have ownership of it)
- You should now be able to delete the folder

From the command line, I'm not sure of the exact commands but it involves:
- takeown (to take ownership of a file or folder)
- cacls   (maybe - to set permissions)
- Then you should be able to delete

Mark.

--
To unsubscribe e-mail to: users+unsubscribe@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.