Sign in to follow this  
Followers 0
Randwulf

File Counting

8 posts in this topic

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...

Share this post


Link to post
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....

1100111 00001011101111 00011101101111 00010111100100 00001111110100 00110111110010 00101101111001 0011100i didn't make up this form of encryption, but i like it.credit to the lvl 6 challenge on arcanum.co.nz

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
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.

Share this post


Link to post
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

Share this post


Link to post
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]

Share this post


Link to post
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)

Share this post


Link to post
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 ;)

Share this post


Link to post
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
Sign in to follow this  
Followers 0