Jump to content

File Counting


 Share

Recommended Posts

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

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

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

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)

NEWHeader1.png

Link to comment
Share on other sites

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

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...