Randwulf Posted October 17, 2005 Share Posted October 17, 2005 Our dormitory residents can directly access my directory of (.wav) files. They use different media players. Is there a way to count the times a file is accessed to determine favorites? The accessed properties in windows is not changed when a program accesses them.. ANY help would be appreciated.. Thx in advance... Link to comment Share on other sites More sharing options...
seandisanti Posted October 17, 2005 Share Posted October 17, 2005 Our dormitory residents can directly access my directory of (.wav) files.They use different media players.Is there a way to count the times a file is accessed to determine favorites?The accessed properties in windows is not changed when a program accesses them..ANY help would be appreciated.. Thx in advance...an interface would be the way to go, either a web based solution (intranet site) or a GUI that copies the files to their pc, and documents which files were copied... it would be pretty easy for you to just make a small gui that they click a browse button on, have it open up a FileOpenDialog(). then you could just use FileWriteLog() to save a list of selections, and have the gui copy the file to their computer. You could then have a script to just go through the log file(s) and count the number of occurances of each file, and output a favorites list. Your client side could even load and display that generated favorites list at startup, so they see the favorites before they choose a file... i offer this advice assuming that you have authorization or rights to copy and or share all files that you are serving.... Link to comment Share on other sites More sharing options...
gamerman2360 Posted October 17, 2005 Share Posted October 17, 2005 It wouldn't count the ones that people just access directly. And that would require you to install the GUI on all there computers. Or get them to access it from your shared folder or whatever. Link to comment Share on other sites More sharing options...
Randwulf Posted October 17, 2005 Author Share Posted October 17, 2005 Thx for the replies guys. There are many varieties of computers and OS's involeved. They are simply directing their different media programs to my directory to play from. There has to be a way of detecting the file is accessed. I'm looking into Eventtriggers.exe in WinXP but don't know if there is an Event ID for this. Still waiting for ideas but, very grateful for your stabs at the challenge. Link to comment Share on other sites More sharing options...
Valuater Posted October 17, 2005 Share Posted October 17, 2005 maybe like this FileGetTime -------------------------------------------------------------------------------- Returns the time and date information for a file. FileGetTime ( "filename" [, option [, format]] ) Parameters filename Filename to check. option [optional] Flag to indicate which timestamp 0 = Modified (default) 1 = Created 2 = Accessed straight from help 8) Link to comment Share on other sites More sharing options...
Skruge Posted October 17, 2005 Share Posted October 17, 2005 You're on the right track with eventtriggers... The question is... which events are you monitoring? You'll need to enable NTFS file auditing on the .wav files. SetACL is a good tool for scripting such changes. Good luck! [font="Tahoma"]"Tougher than the toughies and smarter than the smarties"[/font] Link to comment Share on other sites More sharing options...
markusss Posted October 18, 2005 Share Posted October 18, 2005 I think the easiest way to do this would be something server related, i guess virtual directory has a filecount... Dont know But im pretty sure AutoIt is not the right tool to do this. I'd try php + mysql Just make the php script add 1 (to the value associated with the file) in the mysql database if somebody clicks a link^^ Hope i helped you Felix N. (tdlrali) Link to comment Share on other sites More sharing options...
Randwulf Posted October 18, 2005 Author Share Posted October 18, 2005 Valuater - Thx for the response but, when a player like MusicMatch or Windows Media Player grabs the wav file, it doesn't change the timestamp for "Accessed". Never understood why this is... Skruge - NTFS file auditing.... Hmmmm I'll definitely look into that.... thank you for the thought Felix N. - Server side detecting makes a lot of sense and it seems to me that there should be several ways to go that route but, not being a hardware guy, I'm kind of lost after the basics of networking. I am determined to find a way to do this and will post when found I am going to try password protecting the files and have AutoIt enter the password (Blank?), close the window and count the event ??? Please continue with your ideas. I'm sure there's an elegant & easy way we haven't thought of Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now