P
Pietro Pesce
hi all,
i have this code:
Module Module1
Sub Main()
Dim theProcessStartInfo As New
System.Diagnostics.ProcessStartInfo("Cambio_ip.exe")
Dim theSecurePassword As New System.Security.SecureString()
theSecurePassword.AppendChar("*")
theSecurePassword.AppendChar("*")
theSecurePassword.AppendChar("*")
theSecurePassword.AppendChar("*")
theSecurePassword.AppendChar("*")
theSecurePassword.AppendChar("*")
theSecurePassword.AppendChar("*")
theSecurePassword.AppendChar("*")
theSecurePassword.AppendChar("*")
theSecurePassword.AppendChar("*")
theSecurePassword.AppendChar("*")
theSecurePassword.AppendChar("*")
theSecurePassword.AppendChar("*")
theSecurePassword.AppendChar("*")
theSecurePassword.AppendChar("*")
theSecurePassword.AppendChar("*")
theProcessStartInfo.UserName = "Administrator"
theProcessStartInfo.Password = theSecurePassword
theProcessStartInfo.UseShellExecute = False
'theProcessStartInfo.WorkingDirectory = "c:\"
System.Diagnostics.Process.Start(theProcessStartInfo)
End Sub
End Module
its work...but whit framework 1.1 dont work because SecureString()
there arent.
i must be run i program whit the administrator privileges......where
i
can do?
tnx,
bye
i have this code:
Module Module1
Sub Main()
Dim theProcessStartInfo As New
System.Diagnostics.ProcessStartInfo("Cambio_ip.exe")
Dim theSecurePassword As New System.Security.SecureString()
theSecurePassword.AppendChar("*")
theSecurePassword.AppendChar("*")
theSecurePassword.AppendChar("*")
theSecurePassword.AppendChar("*")
theSecurePassword.AppendChar("*")
theSecurePassword.AppendChar("*")
theSecurePassword.AppendChar("*")
theSecurePassword.AppendChar("*")
theSecurePassword.AppendChar("*")
theSecurePassword.AppendChar("*")
theSecurePassword.AppendChar("*")
theSecurePassword.AppendChar("*")
theSecurePassword.AppendChar("*")
theSecurePassword.AppendChar("*")
theSecurePassword.AppendChar("*")
theSecurePassword.AppendChar("*")
theProcessStartInfo.UserName = "Administrator"
theProcessStartInfo.Password = theSecurePassword
theProcessStartInfo.UseShellExecute = False
'theProcessStartInfo.WorkingDirectory = "c:\"
System.Diagnostics.Process.Start(theProcessStartInfo)
End Sub
End Module
its work...but whit framework 1.1 dont work because SecureString()
there arent.
i must be run i program whit the administrator privileges......where
i
can do?
tnx,
bye