File Exchange

image thumbnail

calcDateLicenseExpi​ry

version 1.0.0.0 (616 Bytes) by Martyn Dorey
An effective way to put a time bar on your distributed files, so you can protect your intellectual c

0 Downloads

Updated 11 Mar 2005

No License

The most common way to time bar your work is to compare todays date with a time bar.

However it is easy for a user to change the date on their machine to get round this. (You can do this on MATLAB for example).

This solution compares the license expiry date with the latest date that files were changed in a check directory[default: 'c:\windows'].
It's a pain to overide this.

This technique should help you protect your intellectual capital when you distribute your work to clients.

% dteEnd = datenum('30-Jun-2005','dd-mmm-yyyy');
% sclrExpire = calcDateLicenseExpiry(dteEnd);
% if sclrExpire>0,
% txtErr= 'Licence expired please contact xxx.yyyy@address.com';
% uiwait(msgbox(txtErr));
% error(txtErr);
% end

Don't know how to stop MATLAB models from being copied. Look forward to hearing your views.
Regards
Martyn

Comments and Ratings (2)

Angela jiang

??? DATENUM failed.
Maximum recursion limit of 500 reached. Use set(0,'RecursionLimit',N)
to change the limit. Be aware that exceeding your available stack space can
crash MATLAB and/or your computer.

Arthur Mobile

Novel approach

Updates

1.0.0.0

Rubbish spelling.

MATLAB Release Compatibility
Created with R14SP1
Compatible with any release
Platform Compatibility
Windows macOS Linux