VB.NET

Moderators: seancampbell
Number of threads: 4022
Number of posts: 10035

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Intercept OS Shutdown Posted by thief_ on 31 Oct 2006 at 7:58 PM
I want to create an application which will run an external application to sync the PC's "My Documents" folder with the server, when the user clicks Shutdown or LogOff. Does anyone have code demonstrating how to do this?

Report
Re: Intercept OS Shutdown Posted by PavlinII on 2 Nov 2006 at 12:07 PM
: I want to create an application which will run an external application to sync the PC's "My Documents" folder with the server, when the user clicks Shutdown or LogOff. Does anyone have code demonstrating how to do this?
:
:
Hi,
this will be a problem, because system (win XP) does not allow start application and libraries when system is shutting down..

I guess there's a big reason why you're not using native synchronization (that synchronizes files automatically on shutdown - if turned on)

There could be possible tho handle system messages and "catch" shutdown request, run your app, wait until it dies and send te request furher for other applications... But this will cause serious troubles and make your system even less stable..



Pavlin II[/size]

Don't take life too seriously anyway you won't escape alive from it!





 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.