Results 1 to 3 of 3

Thread: setting up expiry date of a program

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jul 2000
    Location
    Brunei
    Posts
    100

    Red face

    Hi everyone,

    1. How to prevent the .exe prgram being copied by the user?
    2. How to make the program to expire after a certain period?

    Any suggesionts please.

    Thanks in advance.


  2. #2
    Hyperactive Member
    Join Date
    Apr 2000
    Location
    Isle of Man
    Posts
    276
    Presumably you are doing a time limited demo of your app....

    If you're distributing your app using Package & Deployment wizard or something like that, your files will have the installation date stamped on them as their creation date.

    you can use the FileDateTime function to extract this stamp

    You could then use the DateAdd function to calculate when the program is to expire, eg to see if it's more than 30 days since installation, use

    Code:
    IF Date > DateAdd (d,30,filedatetime("FILE.EXE")) then
    I've not tried this code, so it might need re wording slightly!

    PS, I wouldnt have a clue how to stop a file being copied, though

  3. #3
    Randalf the Red honeybee's Avatar
    Join Date
    Jun 2000
    Location
    off others' brains
    Posts
    4,345

    Well ....

    It seems you are into making your program cracking-proof. If so, check out http://www.activelock.com I got this URL from Megatron, so any thanks go to him. The site also has tips on making your software crackproof, besides some ActiveLock OCX that you can download for free.

    I am not a complete idiot. Some parts are still missing.
    Check out the rtf-help tutorial
    General VB Faq Thread
    Change is the only constant thing. I have not changed my signature in a long while and now it has started to stink!
    Get more power for your floppy disks. ; View honeybee's Elite Club:
    Use meaningfull thread titles. And add "[Resolved]" in the thread title when you have got a satisfactory response.
    And if that response was mine, please think about giving me a rep. I like to collect them!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width