|
|||||||
|
|
|
![]() |
|
|
Strumenti |
|
|
#1 |
|
Registered User
Iscritto dal: Mar 2011
Messaggi: 72
|
[VB.NET] Avviare altro programma come amministratore
Salve a tutti!
Ho bisogno di far avviare da un mio programma un altro software, obbligatoriamente con i privilegi di amministratore. Entrambe le applicazioni, realizzate da me, sono state compilate specificando nel file "app.manifest" di eseguirle con il più alto livello di privilegio: Codice:
<requestedExecutionLevel level="highestAvailable" uiAccess="false" /> Codice:
Dim procStartInfo As New ProcessStartInfo
Dim procExecuting As New Process
With procStartInfo
.UseShellExecute = True
.FileName = ToolPath
.WindowStyle = ProcessWindowStyle.Normal
.Verb = "runas"
End With
procExecuting = Process.Start(procStartInfo)
End
|
|
|
|
|
| Strumenti | |
|
|
Tutti gli orari sono GMT +1. Ora sono le: 07:52.



















