ZTree.com  | ZEN  | About...  

 Index   Back

[Tip] Admin vs NonAdmin - try NirCmd - Oh Yeah!   [Tip]

By: Laurent Duchastel     Montréal, Québec  
Date: Jun 28,2020 at 12:43
In Response to: [Tip] Admin vs NonAdmin - Alternative strategy - try NirCmd (Tim Rude)

> Handy tip!
>
> However, you could use the free 45k utility NirCmd.exe to do both of
> your F9 shortcuts. Plus your ZTree sYstem shortcut wouldn't have to be
> run from an already admin-elevated instance of ZTree since NirCmd can
> elevate it and run it as System all in one go.
>
> F9 command line for your M (adMin) shortcut:
>
> "#ZTTools\nircmd\nircmd.exe" elevate "#ZTHome\ztw64.exe"
> /T"**ADMIN MODE** " %2:%3
>
> F9 command line for Y (sYstem) shortcut:
>
> "#ZTTools\nircmd\nircmd.exe" elevatecmd runassystem
> "#ZTHome\ztw64.exe" /T"**SYSTEM MODE** " %2:%3
>
> NirCmd (from the great Nir Sofer) is available from here:
> https://www.nirsoft.net/utils/nircmd.html

Oh Yeah! This is much better ! I used nircmd many years ago along with ZTree, but I don't remember why I gradually dropped it over the years. I didn't known it could do these things. I guess I have to reread its manual now ;-)

I changed my F9 scripts to reflect your suggestion.

Thank you !


Laurent Duchastel

318 views      
 

Messages in this Thread

 
95,245 Postings in 12,014 Threads, 350 registered users, 41 users online (0 registered, 41 guests)
Index | Admin contact |   Forum Time: Jan 16, 2021 - 2:05 pm UTC  |  Hits:36,842,876  (6,808 Today )
RSS Feed