From: Giovanni Ughi on 29 Jul 2010 10:03 and, how is it possible to "time bomb" p-file? thanks in advance
From: Andy on 29 Jul 2010 10:13 "Giovanni Ughi" <giovanni.ughi(a)yahoo.it> wrote in message <i2s1mo$48o$1(a)fred.mathworks.com>... > and, how is it possible to "time bomb" p-file? > > thanks in advance Well, a simple solution: function output = myFunction(varargin) if now > datenum('2011-01-01') % this code stops working Jan 1, 2011 disp('Please renew your license'); return end % rest of function end
From: Giovanni Ughi on 29 Jul 2010 10:39 definitely easy!... thanks a lot
From: Giovanni Ughi on 29 Jul 2010 10:42 easy... thanks a lot!
From: Giovanni Ughi on 30 Jul 2010 10:13
suggested solution seems to work well. But, if I change the windows clock (system time) will this "crack" the time-bomb? there is any solution robust to that? thanks in advance |