A few challenges related to the Windows system

Windows specific forum
merendo
Enthusiast
Enthusiast
Posts: 449
Joined: Sat Apr 26, 2003 7:24 pm
Location: Germany
Contact:

Re: A few challenges related to the Windows system

Post by merendo »

The (probably more elegant) alternative would be to write my own filesystem driver, which would make the files appear to be there, when in fact, they're still on a remote server and only being downloaded to the local system on demand (like Dropbox). Unfortunately, I have not a single clue how to do that.
The truth is never confined to a single number - especially scientific truth!
SFSxOI
Addict
Addict
Posts: 2970
Joined: Sat Dec 31, 2005 5:24 pm
Location: Where ya would never look.....

Re: A few challenges related to the Windows system

Post by SFSxOI »

merendo wrote:Hello everyone.

Challenge two: Is there a way to detect whenever someone opens a file somewhere on the system? All I'd need to know is the name and location of the file, that's all. So my programme would listen for file opens all the time, and be notified when any file is opened. Is there a way to do that?

Thanks a lot!
merendo
Assuming a network of which you are a/the administrator: Sure, just periodically poll the tasks active on computers in the system. Each open file will have a PID, handle, user name, and file name in the active tasks. Just open up Task Manager (taskman.exe) on your own computer to get an idea of the info available. There wont be a location of the file showing but by using the PID and knowing the user you can tell which machine the user is logged on to then "remotely" by using the PID you can get the location of that file from the "remote" machine. Alternatively, once again assuming your the network administrator, configure the networked machines to report when a certain file or any file is accessed via logging configuration, the poll the logs when you need to do so.
The advantage of a 64 bit operating system over a 32 bit operating system comes down to only being twice the headache.
Post Reply