MC Posted February 22, 2008 at 06:28 PM Report Share #168372 Posted February 22, 2008 at 06:28 PM alguém sabe como desligar o pc através do VB.net ?? Pagina Pessoal-->http://www.miguelmc.net Link to comment Share on other sites More sharing options...
Cybernavigator Posted February 22, 2008 at 09:35 PM Report Share #168406 Posted February 22, 2008 at 09:35 PM Bem, directamente pelo VB duvido que consigas. Mas podes desligar um pc por command line com o comando "shutdown -s", por isso tens de correr isso através do vb. penso que o comando System.Diagnostics.Process.Start serve, então seria qualquer coisa como System.Diagnostics.Process.Start("ShutDown", "/s") Mete isso dentro do código de um butão e experimenta. Melhores cumprimentos,João Lopes***Esta mensagem foi escrita ao abrigo do novo Acordo Ortográfico*** Link to comment Share on other sites More sharing options...
psiico Posted February 23, 2008 at 01:50 AM Report Share #168481 Posted February 23, 2008 at 01:50 AM entao se for assim é: /f /t 0 /f - força as apps a fechar para o shutdown /t 0 - tempo de espera para desligar 🙂 Psiico // Portfolio Link to comment Share on other sites More sharing options...
Asgorath Posted February 25, 2008 at 10:53 AM Report Share #168920 Posted February 25, 2008 at 10:53 AM Boas. podes também chamar a função ExitWindowsEx "The Dark Side Clouds Everthing. Impossible To See The Future Is."My rig: Intel Core 2 Quad Q9450 | abit IP35P | 4G Kingston 800 Mhz | XFX GeForce 9800 GX2 1G ddr3 | 2X WD5000AAJS 500Gb Sata 2 | PSU 600W || Caixa El-Diablo | Creative XMod Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now