Results 1 to 2 of 2

Thread: how to save files and shutdown the system

  1. #1
    Guest
    i would like to shutdown my system using a vb program after closing all the files in the other applications currently running in windows.
    if i use "exitwindowsex " i am able to shutdown the machine but the files in other applications are not getting saved.
    i would like to know the procedure to save the datas automatically and come out of windows to shutdown the machine.
    kindly help me with the details
    please mail me at
    [email protected]


  2. #2
    Hyperactive Member razzaj's Avatar
    Join Date
    Oct 1999
    Location
    jounieh
    Posts
    261
    You cant save the files automatically , all u can do (at least i think so ) , u are to close each app running , not force close , then each app will ask u "Save , Cancel , Dont save " .

    i dont know if there is a way to send "a message " to each app telling it to execute Save command and close

    if u dont know how to use the close and frceclose functions (API ) just post i ll reply with the nessesary decalarations .

    - regards -
    - razzaj -

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width