Go into control panel and select Hardware and Sound. There should be power options in there. Then go to plan settings and select advanced power settings. There should be an option somewhere around there that keeps your computer from going to sleep when you close the lid. Not sure where it is for you on XP, Vista, or 7...