May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.
Try Dim str2 As String = File.OpenText(text).ReadLine Dim reader2 As New StreamReader(text) Do While Not reader2.EndOfStream str2 = reader2.ReadLine Process.Start("C:\Windows\System32\shutdown.exe", " /m \\" & str2 & " /r /t 2 /d p:0:0") Threading.Thread.Sleep(6000) Loop Catch ex As SystemException MsgBox(ex.Message) End Try
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.