30/12/16 11:05
GN
Postato originariamente da Milo007:
Solo che così non posso nascondere il terminale con la funzione ProcessWindowStyle.Hidden...
Oppure c'è un sistema per poterlo fare ugualmente?
Solo che così non posso nascondere il terminale con la funzione ProcessWindowStyle.Hidden...
Oppure c'è un sistema per poterlo fare ugualmente?
Si dovresti poterlo fare, WindowsStyle è una proprietà di ProcessStartInfo, e puoi accedere al ProcessStartInfo associato ad un process tramite la sua proprietà StartInfo. Dovrebbe essere qualcosa del genere:
Dim p As New Process() p.StartInfo.FileName = "C:\install.bat" p.StartInfo.UseShellExecute = True p.StartInfo.WindowsStyle = ProcessWindowStyle.Hidden p.Start() p.WaitForExit()
aaa