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

  • SEARCH
  • Home
  • 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 160675
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T11:04:38+00:00 2026-05-11T11:04:38+00:00

So we have a few (or more, no one knows) apps written by someone

  • 0

So we have a few (or more, no one knows) apps written by someone who has now left, these apps access Microsoft Access Databases stored on this developers old PC, which in turn read from our Production SQL database. Now to track all these programs down, and what time they are run, I’d like to keep a log of a files access time, is this possible to do? Obviously if I read the access time, I would modify it. We can’t rely on the modified time, as some Access Databases are just linked tables to the SQL Database.

Prefer to do this in C#, but it doesn’t matter. Just need to track down whats running where, once I’ve found them, they can be modified.

Thanks.

  • 1 1 Answer
  • 1 View
  • 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. 2026-05-11T11:04:39+00:00Added an answer on May 11, 2026 at 11:04 am

    http://msdn.microsoft.com/en-us/library/system.io.filesystemwatcher.aspx

    public class Watcher 

    {

    public static void Main() { Run();  }  [PermissionSet(SecurityAction.Demand, Name='FullTrust')] public static void Run() {     string[] args = System.Environment.GetCommandLineArgs();      // If a directory is not specified, exit program.     if(args.Length != 2)     {         // Display the proper way to call the program.         Console.WriteLine('Usage: Watcher.exe (directory)');         return;     }      // Create a new FileSystemWatcher and set its properties.     FileSystemWatcher watcher = new FileSystemWatcher();     watcher.Path = args[1];     /* Watch for changes in LastAccess and LastWrite times, and        the renaming of files or directories. */     watcher.NotifyFilter = NotifyFilters.LastAccess | NotifyFilters.LastWrite        | NotifyFilters.FileName | NotifyFilters.DirectoryName;     // Only watch text files.     watcher.Filter = '*.txt';      // Add event handlers.     watcher.Changed += new FileSystemEventHandler(OnChanged);     watcher.Created += new FileSystemEventHandler(OnChanged);     watcher.Deleted += new FileSystemEventHandler(OnChanged);     watcher.Renamed += new RenamedEventHandler(OnRenamed);      // Begin watching.     watcher.EnableRaisingEvents = true;      // Wait for the user to quit the program.     Console.WriteLine('Press \'q\' to quit the sample.');     while(Console.Read()!='q'); }  // Define the event handlers. private static void OnChanged(object source, FileSystemEventArgs e) {     // Specify what is done when a file is changed, created, or deleted.    Console.WriteLine('File: ' +  e.FullPath + ' ' + e.ChangeType); }  private static void OnRenamed(object source, RenamedEventArgs e) {     // Specify what is done when a file is renamed.     Console.WriteLine('File: {0} renamed to {1}', e.OldFullPath, e.FullPath); } 

    }

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

Sidebar

Related Questions

I have a MS Access database with few tables and a form. When more
I have a few areas in my ASP MVC project. One area has near
Getting more and more familiar with DI but I still have few niggles. Read
I have few tabs and I need to way to access textboxes on them
I have a few apps that generate textual tracing information (logs) to log files.
I have an engine that has quite a few dependencies. To make it easier
I have few tables: Apps : id | name | url_key =================== 1 |
I have been learning Ruby & more specifically the rails framework the past few
I have few scripts loaded by cron quite often. Right now I don't store
I have few node types and some of them have an extra field is

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.