Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to make a demo with expiration?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00940139
Message ID:
00940185
Vues:
16
>>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform