ZTree.com  | ZEN  | About...  

 Index   Back

[Wish] Launch ZT scripts in admin mode while ZT is normal   [Wish]

By: Laurent Duchastel     Montréal, Québec  
Date: Feb 18,2013 at 00:05
In Response to: [Wish] Launch ZT scripts in admin mode while ZT is normal (Hartmut Schneider)

> So please try:
> runas /user:admin "cmd /k mklink
> \"%j2:%j3\%4.%5\" \"%1\""
> with the inner double quotes escaped by "\".

Thanks for taking some time to tackle this issue.

As my sole account on this system was named Laurent with admin level, but couldn't work with your script, I had to enabled the Administrator account.

The script works now as it is.

Thanks a lot !

* * *

There are still some room to solve this issue a better way:
- Running within an account which as admin privileges rather than relying on the inbuilt Administrator account (which doesn't exist by default on non-pro Windows version btw)
- Running without asking password
- Closing open cmd session automatically.

Thanks again.


Laurent Duchastel

1,093 views      
Thread locked
 

Messages in this Thread

 
96,637 Postings in 12,231 Threads, 350 registered users, 38 users online (0 registered, 38 guests)
Index | Admin contact |   Forum Time: Mar 29, 2024 - 12:38 am UTC  |  Hits:62,386,063  (849 Today )
RSS Feed