Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9176195
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T17:03:22+00:00 2026-06-17T17:03:22+00:00

I have a license file that I wish to invalidate if any program other

  • 0

I have a license file that I wish to invalidate if any program other than ours reads the file. My idea is to use File.GetLastAccessedTime(string) and save this value off to the file to be checked when we read the file back in.

However, I am afraid that aside from anti-virus (customers will have to exclude our license file from a scan, I know), there might be windows services or programs that might touch the files and cause the LastAccessed attribute on the file to be updated outside the context of our program, but without malicious intent.

What Windows’ programs or services might access this file in the background? Is this a legitimate problem I need to worry about? And if this is something I should be worrying about, are there any common techniques to reliably achieve my end goal?

I am looking for a solution in the .NET 4 world. Thanks in advance for any help with this.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T17:03:25+00:00Added an answer on June 17, 2026 at 5:03 pm

    ANy desktop search app. Any virus they get. WIndow’s find in files application. All anti-virus and anti-malware tools. A better idea is to cryptographically sign the file to detect alteration of contents, or not to leave a file you’re that worried about on the client’s machine (download it and use it in ram only).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a license file that I need to access at runtime in order
I have an application which reads a license file when it starts up. My
We have a small .Net program that we sell with individual licenses. The individual
I have created a .net application that is currently using a encrypted text file
We need to embed a license file in the installation that is unique for
I have an open source plugin, with a license that allows me to modify
I have a large 10gb+ .dmp file that I need to convert to flat
I was initially going to use a signed serialized xml file to store license
I want to use RSA to protect license files in an application. The idea
Suppose I have two XML files. First XML File: <?xml version=1.0?> <AccessRequest xml:lang=en-US> <AccessLicenseNumber>Your_License</AccessLicenseNumber>

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.