Hi
There is a utility called somthing like satartup and shutdown luncher which help you manage loading program during sartup and shut down.to load any program you can use the the registry places such as runonce (there is an article in microsft technet)
or use startup menu,autoexec.bat ec..
there is a program listed in zdnet to show you how to shutdown in VB.
Performing the Windows shutdown operation
Help & How-To
July 6, 1999 9:00 PM PT
URL: http://www.zdnet.com/zdhelp/stories/main/0,5594,920189,00.html
Ever wondered how programs that you install automatically perform the Windows shutdown operation? Well, it's actually a simple API call to do this. Add the following API Declares and Constants to a BAS Module:
Declare Function ExitWindowsEx& Lib "user32" (ByVal uFlags&, ByVal wReserved&)
Global Const EWX_FORCE = 4 'constants needed for exiting Windows
Global Const EWX_LOGOFF = 0
Global Const EWX_REBOOT = 2
Global Const EWX_SHUTDOWN = 1
Then you Shutdown/reboot/logoff windows with the following call:
lresult = ExitWindowsEx(EWX_SHUTDOWN, 0&) 'shut down the computer
Note: Replace the first parameter of the ExitWindowsEx function call with the appropriate CONSTANT.