Results 1 to 11 of 11

Thread: Date Problem

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jul 2002
    Posts
    113

    Date Problem

    How can i do for not allow the user changing the system date.



    Thanks

  2. #2
    Banned Michael_Kamen's Avatar
    Join Date
    May 2001
    Location
    The Netherlands
    Posts
    1,180
    I don't think you can.

    Has it got something to do with an time-based license on software of yours or something?

  3. #3
    PowerPoster
    Join Date
    Aug 2000
    Location
    IN SILENCE
    Posts
    6,441

    Well

    I have searched and found nothing on this subject... If I find, I will post the information...
    Remaining quiet down here !!!

    BRAD HAS GIVEN ME THE ULTIMATIVE. I have chosen to stay....

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Jul 2002
    Posts
    113
    i will add recordsets with the system date but i dont want to allow the user change the system date.

  5. #5
    PowerPoster
    Join Date
    Aug 2000
    Location
    IN SILENCE
    Posts
    6,441

    Well

    Is this for an internal application you are developing? I track by entries to my system.

    When user enters I write system date to a hidden file.

    Say they go into system today 9/12/2002. Store this date.

    User changes date to the past, check against the last stored date... Gotcha.

    Remaining quiet down here !!!

    BRAD HAS GIVEN ME THE ULTIMATIVE. I have chosen to stay....

  6. #6

    Thread Starter
    Lively Member
    Join Date
    Jul 2002
    Posts
    113
    Yes it could be, do you say writing the date into a txt file, and then recovery it????

  7. #7
    Hyperactive Member
    Join Date
    Sep 2002
    Posts
    258
    If it is for Licensing and that is the avenue you want to go down then as James suggested that is the best way to go about it.

    Assume you start from setup, then you should automatically save a pre-dated file somewhere with the application files, as this will act as an initialisation that you can compare against and prevent any system date tampering before the application is run.

    Ensure you don't save the file somewhere obvious, or if you must then run the data through a cypher and ensure the file is needed to start the app along with a certain key hidden within the data.

    You don't have to save the file as a text file either, infact, hide it further by assigning a dummy extension... remeber unless your app is for people with an intimate knowledge of computers (Insert your own 3inch floppy gag) then they will be fairly ignorant of the watsit thingymajigs. When the app is started firstly check the system date, if it is earlier than that already on the file delete the key (License) if it isn't then update the hidden date file.

    That should sort it for you, simple, though not hack proof by any means.

  8. #8

    Thread Starter
    Lively Member
    Join Date
    Jul 2002
    Posts
    113
    i have a doubt how can i do to update the file if a day the program has not been execute????

  9. #9
    PowerPoster
    Join Date
    Aug 2000
    Location
    IN SILENCE
    Posts
    6,441

    Well

    You do make a good point that if the app is never executed the date won't be stored. But then again, if it's not run, how would you run the code to check and see if the date was changed?
    Remaining quiet down here !!!

    BRAD HAS GIVEN ME THE ULTIMATIVE. I have chosen to stay....

  10. #10
    Hyperactive Member
    Join Date
    Sep 2002
    Posts
    258
    It's a date stamp. You simply update it as and when the application is evoked and also run all the comparison/update routines.

    If you're just providing software with an expiry date (i.e. evaluation) then it doesn't matter when or how many times they run the application.

    Maybe if you actually detail what you hope to achieve we can better offer our advice.

  11. #11
    Frenzied Member ice_531's Avatar
    Join Date
    Aug 2002
    Location
    Sitting w/ Bob Status: -Next -To- Null- Friend: Philip
    Posts
    1,152

    well...

    www.vbcode.com
    search there..... theres a 30 day license code.. it checks sys date etc stores an entry in reg.. then checks bk on it to see if it was changed!!!

    i think thats along the lines of wat your looking for
    :::`DISCLAIMER`:::
    Do NOT take anything i have posted to be truthful in any way, shape or form.
    Thank You!

    --------------------------------
    "Never heard about "hiking" poles. I usualy just grab a stick from the nature, and use that as a pole." - NoteMe
    "Finaly I can look as gay as I want..." - NoteMe
    Languages: VB6, BASIC, Java, C#. C++

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