所有已安装软件的上次访问日期和时间 [英] Last accessed date and time of all the installed software

查看:83
本文介绍了所有已安装软件的上次访问日期和时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

海,

我需要找出机器中所有已安装软件的最后访问日期和时间.请帮我找出来.在此先感谢.

Hai,

I am in the need of finding out the last accessed date and time of all the installed software in my machine. Please help me to find out. Thanks in advance.

推荐答案

这是可能的.方法如下:

首先,您需要访问每个已安装产品的所有文件路径名.使用此注册表项访问可执行文件列表:

This is possible. Here is how:

First, you need to access all the to the file path names for every installed product. Use this Registry key to access the list of executable files:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths



您可以使用类Microsoft.Win32.Registry访问注册表节点.

对于该节点的每个子节点,您将找到可执行文件的路径名.查看其中一些文件的属性.系统属性对话框将显示一些时间,包括标签已访问"下的一个.运行该应用程序,并确保此时间更改为您运行它的时间.您可以使用System.IO.File.GetLastAccessTimeSystem.IO.File.GetLastAccessTimeUtc以编程方式检索该时间.

—SA



You can access Registry nodes using the class Microsoft.Win32.Registry.

For every child node of this node you will find executable file path name. Look at the properties of some of these files. The system property dialog will show some times, including one under the label "Accessed". Run the application and make sure this time changes to the time you run it. You can retrieve this time programmatically using System.IO.File.GetLastAccessTime or System.IO.File.GetLastAccessTimeUtc.

—SA


这篇关于所有已安装软件的上次访问日期和时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆