Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to make a demo with expiration?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00940139
Message ID:
00940185
Views:
17
>>Hello, i need to give the demo of a program i made but i want that after 2 months doesn't work or allow to work, how can i do this?>>

Include in you setup file a dll to be copied to the destination PC.
then everytime your main prg runs, it checks the date if certain condition meet then delete the file..

It seem like this,,

Get first intall windows and system dir..store to a variable the path plus your dll file or other file that you Demo system needs to check before it proceed to execute your next code blocks.
SET DATE TO BRITISH
SET TALK OFF
ddatelimit = CTOD("10/10/2004")
If !File('yourfile.dll')
    QUIT
ENDIF

If date() >= ddatelimit
   If file('yourfile.dll')
      dele file yourfile.dll
   Endif
Endif
*// Code blocks..
Jojo R. dela Cuesta, B.Sc.
eConsultant, Programmer
Dalplus Technologies
http://www.dalplus.com
Previous
Reply
Map
View

Click here to load this message in the networking platform