New
#31
Last edited by f14tomcat; 21 Jul 2019 at 19:33.
Last edited by f14tomcat; 21 Jul 2019 at 19:33.
OK, thanks. I added explorer.exe to PowerRun and then double-clicked on that...I take it I then need to go to cmd.exe and execute the command you gave me to delete bin? I naively tried to go straight to the bin folder and delete it but it still requires the same permissions as outside of PowerRun.
I'll have to admit that has me a bit baffled. Explorer running as TrustedInstaller should have been sufficient. I'm presuming your user account is part of the Administrator's Group, meaning it is an Administrator Account, not basic USER account. It wasn't naive at at, that's exactly what I would have done. You can try opening an Admin command prompt while running this PowerRun Explorer, and do the command I posted. If it still barks, please post the exact message. I haven't run into this restriction in all the times I've used it. Thanks for your patience.
Instead ofWhat is the proper command to fully delete the 'bin' folder and all its subfolders/files?
I tried rmdir /s/q binbinyou must enter the full path to it [enclosing the path in " if it contains any spaces]FOR EXAMPLE ONLY[If you want to you can enclose paths in " even if they do not contain any spaces. It is merely a waste of effort but it does no harm.]
"C:\Some folder or other\bin"
1 First you need to use a Del command with some switches to remove all the files in that folder & its subfoldersFOR EXAMPLE ONLY2 Then you can remove the folder itself [together with its subfolders]
del /f /q /s "C:\Some folder or other\bin"
FOR EXAMPLE ONLY
rd /s /q "C:\Some folder or other\bin"
[RD is supposed to be able to do the job on its own without any use of the Del command but it sometimes fails to do so]
Note - You can see the syntax for using del and rd by enteringdel /?in any command prompt window
rd /?
[and the same applies to most other commands]Denis
Last edited by Try3; 22 Jul 2019 at 00:23.
Matthew,
If you want some reassurance that you have higher status using a cmd window within PowerRun then open a command prompt within it and enter
whoami
Note - I have not yet tried the advice on the PowerRun webpage to use TrustedInstaller status but I assume that if I did the result would also be shown in response to whoami.
Corrected later - After seeng f14tomcat's posted diagrams, I checked and I had the TrustedInstaller set in PowerRun. So nt authority\system is evidently what is displays for that condition.
Denis
Last edited by Try3; 21 Jul 2019 at 20:00.
I was able to confirm that TrustedInstaller has full control over explorer.exe from PowerRun.
This is the message I keep getting whether using PowerRun or not:
I wasn't sure how to execute the command via cmd.exe via explorer.exe other than to create a desktop shortcut and then open as Admin. Once I do that cmd opens with C:\Users\m_han\ but I need to be in downloads. Not sure how to best proceed. If I put in your commands as is here it gives me a syntax error.