How to run my program when the machine shutdowns?


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 5 of 5

Thread: How to run my program when the machine shutdowns?

Hybrid View

  1. #1
    Join Date
    Sep 2004
    Posts
    96

    How to run my program when the machine shutdowns?

    Hi,I want to run the vb program when my machine shutdowns.But I don't kown about doing it.Thanks a lot.
    xuliangchu

  2. #2
    Join Date
    Apr 2007
    Location
    Sterling Heights, Michigan
    Posts
    8,666
    VB6 isn't going to run it, your operating system will. What version of windows are you running?
    I don't answer coding questions via PM or Email. Please post a thread in the appropriate forum section.
    Please use [Code]your code goes in here[/Code] tags when posting code.
    Before posting your question, did you look here?
    Got a question on Linux? Visit our Linux sister site.
    Modifications Required For VB6 Apps To Work On Vista

  3. #3
    Join Date
    Sep 2004
    Posts
    96

    My operation is windows XP

    Hi,My operation system is Windows Xp (professional 2002 service pack 3).Is there any api function for it?thans a lot.
    xuliangchu

  4. #4
    Join Date
    Apr 2007
    Location
    Sterling Heights, Michigan
    Posts
    8,666
    Try using the Group Policy Editor (start - run - gpedit.msc). Under the computer configuration - windows setting - scripts, right-click on shutdown, select properties, and then add the name of your program.
    I don't answer coding questions via PM or Email. Please post a thread in the appropriate forum section.
    Please use [Code]your code goes in here[/Code] tags when posting code.
    Before posting your question, did you look here?
    Got a question on Linux? Visit our Linux sister site.
    Modifications Required For VB6 Apps To Work On Vista

  5. #5
    Join Date
    Sep 2004
    Posts
    96
    Thank you for your good help to me.
    xuliangchu

Similar Threads

  1. Problem with Vending Machine Program
    By zolofy in forum C++
    Replies: 3
    Last Post: 03-23-2009, 05:52 PM
  2. Java Vending Machine Program
    By JohnSmith70 in forum Java
    Replies: 1
    Last Post: 11-07-2007, 11:59 AM
  3. Vending Machine Program Help!!
    By emohs in forum C++
    Replies: 12
    Last Post: 03-10-2007, 05:54 PM
  4. Replies: 0
    Last Post: 03-18-2001, 11:33 AM
  5. Replies: 0
    Last Post: 05-12-2000, 10:40 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center