1

I am trying to get the last used date for applications on Windows. I have tried looking through the registry but it does not seem to store it there anywhere.

I have also looked at WMIs Win32_SoftwareFeature but it's very very slow and fairly recent so won't work on Windows XP or Server 2003. This is for audit software that would advise the user which programs he doesn't need and so on.

This article seems to be in the right direction. It says:

"In order to get the "Last Used" and "Frequency" values, Add/Remove Programs needs to know the name of the EXE so it can ask the Start menu "Hey, how often did the user run this program, and when was the last time it happened?""

But it does not say how to ask the start menu this question.

So, if you know how to enumerate programs in start menu and get the last used date that would be great as well - I can work from there.

4

0 回答 0