Link to home
Start Free TrialLog in
Avatar of Devildib
Devildib

asked on

validating any given condition on machine shutdown in c# dot net

Hi Experts,

Suppose I need to make sure creation of a file say abc.txt in a particular directory, in windows 7 OS, on machine shutdown.How do I check that? If file is created, allow shutdown, else do not shut down and give a message to user.
ASKER CERTIFIED SOLUTION
Avatar of UnifiedIS
UnifiedIS

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Devildib
Devildib

ASKER

Is'nt there any programmatic approach to capture shut down button of system and write the file exist logic there itself?
It's possible, I don't know how to do that though.