Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Is it possible to have conditional execution of an .exe file? 1

Status
Not open for further replies.

bbarr

Programmer
Sep 15, 2003
51
US
I hope this is the right forum for this question!

I have an .exe program that I only want users to be able to execute if they have met a certain condition; the certain condition being that they filled out a logbook (a separate app ... simple databse).

I guess the first question is, do .exe files have events (such as an on_execute event) that can be captured by the system, whether it be via c++ or WIN API programming where I can write some code to check that certain data meets specific requirements (such as fields the aforementioned database have been filled out) and if not it would not allow the .exe file to execute?

Thanks!

 
You can use WMI services to write an event, and check an event, between "start ...." invocations.

Fundamentally the Windows security model should either allow or deny the user access to the application at the beginning of the processs.

You could call an end the application if the the user fails to meet whatever requirements you specify; including forcing a shutdown of the system. Just exit. If necessary, reboot the machine. There are standard .vbs scripts for forcing an reboot.

 
Thanks bcastner,

I was talking to some others and they recommended using a lockdown program.

Are you (or anyone) familiar with these programs?

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top