Almost impossible that user guess this mechanism of expiration,the vbs it will be crypted like an exe, and not only check the file date will do other neccesary task in order the main app works, the installation create 20 or more files, among them it will be the file, How we can know which is?
We can obtain the Date from a web server, but, even vbs take the local clock,an user generally modify the local date set it to date in the future, then install the program trying with this, avoid the 30days trial, finally return to real date.My idea is in each startup the vbs check a file crated...
The porpuse of this script is to reforce a trial check in my software.i have a program, when is open for first time generate a file, this file is checked in every startup of the pc, if is older than 30 days the script make the program expire.Now to prevent the user install or open the program...
Thank u PHV, you give me the perfect cue, even your code detect a file modified today as newer, i can take your first line and finally the code thats works is this:
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objFile = objFSO.GetFile("c:\temp\file.txt")
If...
I want to check if file date is 30 days older or newer than actual date, i mean for example if today is 29/11/2013 if my file has DateLastModified=20/10/2013 detect that file is older for 30 o more days, but also if a date was manipulated and for example has a newer date than actual date, for...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.