But does this method issue a shut-down instruction to all running apps, as the normal way does? Bruce Cannon Style Management Systems http://siliconcrucible.com (510) 787-6870 1228 Ceres ST Crockett CA 94525 Remember: electronics is changing your world...for good! > -----Original Message----- > From: pic microcontroller discussion list > [mailto:PICLIST@MITVMA.MIT.EDU]On Behalf Of Thomas McGahee > Sent: Tuesday, September 19, 2000 4:55 AM > To: PICLIST@MITVMA.MIT.EDU > Subject: Re: [OT]:Its all about Visual Basic > > > This is not exactly what was originally asked for, but here is how I set > up a Shortcut Icon on the Desktop to allow for a clean shutdown of the > Windows 95/98 system. I have found that this method ALWAYS shuts > down properly, > whereas if I use the Start/Shutdown method that you are supposed to use, > my system would sometimes hang up. > > Create an Icon on the desktop. Name it SHUTDOWN. > Click on the SHORTCUT tab and fill in the following: > > C:\WINDOWS\RUNDLL.EXE user.exe,exitwindows > > leave blank. > Adjust SHORTCUT KEY as desired (I use None) > Adjust RUN to Normal Window > > Use CHANGE ICON to associate a reasonable icon with > this function. I use the icon that looks like a large rectangular > button with the Windows logo at the upper left. > > I originally got the directions for creating this shutdown > method from Microsoft's Knowledge Database at their website. > > Fr. Tom McGahee > > > ----- Original Message ----- > From: Mitchell D. Miller > To: > Sent: Monday, September 18, 2000 12:25 PM > Subject: Re: [OT]:Its all about Visual Basic > > > > > Is there anybody knows a command in visual basic for the windows > > shutdown? > > > > I believe the Windows NT Resource Kit has a SHUTDOWN.EXE > command within it. > > If you search around some of the shareware sites (ex: www.cnet.com) I'm sure > you'll find a freeware or shareware equivalent. > > The other option would be to directly call some Windows API from within your > VB app, but I don't remember which API call you want. > > -- Mitch > > -- > http://www.piclist.com hint: To leave the PICList > mailto:piclist-unsubscribe-request@mitvma.mit.edu > > -- http://www.piclist.com hint: PICList Posts must start with ONE topic: "[PIC]:" PIC only "[EE]:" engineering "[OT]:" off topic "[AD]:" ad's -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics