shutting my pc using VB command control
-
shdtwen wrote:
what's the source code for shutting my pc using the vb?
Whatever the code is that you come up with. But, in the end it's going to involve calling ExitWindowsEx[^]. If you want examples of it's use, all you have to do is Google for "vb.net ExitWindowsEx[^]".
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007 -
or you could use the ms-dos's shutdown command shutdown -s -f where: -s shutdown computer completly -f force to close applications
Manuel say: Greetings from Mexico, Cuando salga el sol, no estare aqui... --------------------------------------- Web: http://www.otakuzone-fanzine.com Forum: http://www.otakuzone-fanzine.com/foro
-
or you could use the ms-dos's shutdown command shutdown -s -f where: -s shutdown computer completly -f force to close applications
Manuel say: Greetings from Mexico, Cuando salga el sol, no estare aqui... --------------------------------------- Web: http://www.otakuzone-fanzine.com Forum: http://www.otakuzone-fanzine.com/foro
Shutdown doesn't come with all flavors of Windows.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007 -
Shutdown doesn't come with all flavors of Windows.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007Dave Kreskowiak wrote:
Shutdown doesn't come with all flavors of Windows.
I was going to say that. It has odd variations in Linux depending on what distribution...