Click here to Skip to main content
15,868,340 members
Articles / Desktop Programming / MFC
Article

List Components, Executables and Libraries

Rate me:
Please Sign up or sign in to vote.
2.33/5 (2 votes)
15 May 2000 40.9K   494   13   1
A handy utility that produces a comma delimited list of components such as .exe's, ocx's etc on your hard drive.
  • Download source files - 17 Kb
  • What it does

    This utility produces a comma delimited text file of all or a restricted set of components on the C: drive. Components are things like dll, ocx, exe...

    How to use it

    Run the utility before installing software on a PC. It will produce a comma delimited 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

    Now you can import both comma delimited text files into MS Access and determine what files where added or modified by the install process.

    The comma delimited text files have the following format:
    computerName, fileName, path of file, file size, date file was created, date file was last used, version number, fixed version number, product version

    Technology used: (K.I.S. - Keep it simple)

    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 in this utility.

    With the notable exception of the CVersionInfo class written by Roberto Rocco. The code does use some elementary CMap, CArray, CStringArray, CFile and CFileStatus classes. DOS provides the main search engine. The DOS statement is wrapped by the 'system' command.

    I share this as a convenience to others, there is no technology here that could not be found in a beginners C++ book. The utility allows you to search the entire C: drive or you can limit the search to just certain files and or certain directories and file extensions. This can be done by configuring an ini file. A sample ini file is include in the zip.

    Closing

    I maintain no rights or restrictions on this code. It was not plagiarized from any other source.

    License

    This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

    A list of licenses authors might use can be found here


    Written By
    United States United States
    This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

    Comments and Discussions

     
    GeneralMy vote of 2 Pin
    Alexandre GRANVAUD11-Aug-09 2:55
    Alexandre GRANVAUD11-Aug-09 2:55 
    trivial

    General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

    Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.