[译]列出组件,可执行文件和库
By robot-v1.0
本文链接 https://www.kyfws.com/applications/list-components-executables-and-libraries-zh/
版权声明 本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!
- 3 分钟阅读 - 1288 个词 阅读量 0[译]列出组件,可执行文件和库
原文地址:https://www.codeproject.com/Articles/529/List-Components-Executables-and-Libraries
原文作者:Phil McGahan
译文由本站 robot-v1.0 翻译
前言
A handy utility that produces a comma delimited list of components such as .exe’s, ocx’s etc on your hard drive.
一个方便的实用程序,它在硬盘驱动器上生成逗号分隔的组件列表,例如.exe,ocx等.
它能做什么(What it does)
此实用程序在C:驱动器上生成一个逗号分隔的文本文件,其中包含所有或一组受限的组件.组件是dll,ocx,exe …(This utility produces a comma delimited text file of all or a restricted setof components on the C: drive. Components are things like dll, ocx, exe…)
如何使用它(How to use it)
在PC上安装软件之前,请运行该实用程序.它将在C:\ Temp中生成一个commadelimited输出文件.该文件将以PC命名,并且将附加文本'_com.txt'.保存此文件,安装新软件,然后再次运行该实用程序.简单的对话框使您将清楚地创建哪些文件以及在何处创建文件. “关于"框说明实用程序将执行的过程.(Run the utility before installing software on a PC. It will produce a commadelimited output file in C:\Temp. The file will be named after the PC and it will have the text ‘_com.txt’ appended to it. Save this file, install new software, and run this utility again. The simple dialog makes what files will be created and where they are created quite clear. The about box explains the process the utility will perform.)
输出(The output)
现在,您可以将两个以逗号分隔的文本文件导入到MS Access中,并确定在安装过程中添加或修改了哪些文件.(Now you can import both comma delimited text files into MS Access anddetermine what files where added or modified by the install process.)
以逗号分隔的文本文件具有以下格式:(The comma delimited text files have the following format:) computerName,fileName,文件路径,文件大小,创建日期文件,最后使用日期文件,版本号,固定版本号,产品版本(computerName, fileName, path of file, file size, date file was created, datefile was last used, version number, fixed version number, product version)
使用的技术:(K.I.S.-保持简单)(Technology used: (K.I.S. - Keep it simple))
这是一个使用VC 5.0向导构建的基于对话框的简单exe.此实用程序没有很多值得称赞或指责的高科技.(This is a simple dialog based exe built using the VC 5.0 Wizard.There is not a lot of high technology to be credited for or blamed for inthis utility.)
除了(With the notable exception of the) CVersionInfo
RobertoRocco编写的课程.该代码确实使用了一些基本的(class written by RobertoRocco. The code does use some elementary) CMap
,(,) CArray
,(,) CStringArray
,(,) CFile
和(and) CFileStatus
类. DOS提供了主要的搜索引擎. DOS语句由” system"命令包装.(classes. DOS provides the main search engine. The DOSstatement is wrapped by the ‘system’ command.)
我将其分享给他人,是为了给他人提供方便,此处没有在C ++初学者中找不到的技术.该实用程序允许您搜索整个C:驱动器,或者可以将搜索限制为仅某些文件和/或某些目录和文件扩展名.这可以通过配置一个ini文件来完成.压缩文件中包含一个示例ini文件.(I share this as a convenience to others, there is no technology here thatcould not be found in a beginners C++ book.The utility allows you to search the entire C: drive or you can limit thesearch to just certain files and or certain directories and file extensions.This can be done by configuring an ini file. A sample ini fileis include in the zip.)
闭幕(Closing)
我对此代码没有任何权利或限制.没有其他来源窃它.(I maintain no rights or restrictions on this code. It was not plagiarizedfrom any other source.)
许可
本文以及所有相关的源代码和文件均已获得The Code Project Open License (CPOL)的许可。
C++ VC6 Windows MFC Visual-Studio Dev 新闻 翻译