I'm trying to write a script which allows the tool to run only 5 times. If the user tries to run the tool a 6th time, the tool should throw an error as Expired.
Can anyone please help me in this?
I'm trying to write a script which allows the tool to run only 5 times. If the user tries to run the tool a 6th time, the tool should throw an error as Expired.
Can anyone please help me in this?
Copyright © 2021 Jogjafile Inc.
Create a registry key and control it that way. HKCU\Software\YourApp\timesrun or something like that... Increment it by one everytime the "tool" runs, and throw an exception when it exceeds 5 times.
-Paul Horan-