Jump to content
Sign in to follow this  
JamesDover

FileGetTime Help

Recommended Posts

JamesDover

FileGetTime seems to change the last accessed time to the current time when it reads so I can't get a good reading. Is there anything I am missing? I'm trying to find how offen the user uses office.

Cheers

$Excel2003 = FileGetTime(@ProgramFilesDir & "\Microsoft Office\OFFICE11\excel.exe", 2)

$Excel = $Excel2003[0] & "/" & $Excel2003[1] & "/" & $Excel2003[2]

Edited by JamesDover

Share this post


Link to post
Share on other sites
flip209

What about change it from accessed to modified?


" I haven't failed. I've just found 10,000 ways that won't work." Thomas Edison "You cannot help men permanently by doing for them what they could and should do for themselves." Abraham Lincoln

Share this post


Link to post
Share on other sites
JamesDover

I could except when they run excel.exe the modified date doesn't change :( . If it was a test.doc file it would work. :)

Share this post


Link to post
Share on other sites
weaponx

I don't know if this some strange cosmic event but i'm pretty sure every time I see a new example script posted, people ignore it and request something similar. Never fails.

This is the topic right below yours, which retrieves everything you asked for (last accessed, frequency of use, etc...):

http://www.autoitscript.com/forum/index.php?showtopic=70263

Edited by weaponx

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  

×