Programs Log

This is a discussion on Programs Log within the A Brief History of Cprogramming.com forums, part of the Community Boards category; Hey does anyone know how to do a console program that would record the programs installed on a system and ...

  1. #1
    Registered User
    Join Date
    Jul 2002
    Posts
    23

    Question Programs Log

    Hey does anyone know how to do a console program that would record the programs installed on a system and then copy this log file to a floppy? i know how to make stuff copy to a floppy i just dont know if its possible to record the programs installed on a computer. Im using Windows XP and Dev-C++.
    Is there a log file that contain the program files or do i have to create it? if i do please help me.
    |:|::...<<VooDoo>>...::|:|

  2. #2
    Registered User sean345's Avatar
    Join Date
    Mar 2002
    Posts
    346
    This is a windows question. I think the data is contained somewhere in the registry. Take a look at MSDN at http://msdn.microsoft.com

    - Sean
    If cities were built like software is built, the first woodpecker to come along would level civilization.
    Black Frog Studios

  3. #3
    Registered User
    Join Date
    Jul 2002
    Posts
    23
    ok that page didnt help me at all. i know what key is the one that holds the program files but i just dont know how to extract the info out of it. like make a *.reg but without having to open the registry. i would like to program a console or windows app that would take some info from the registry and then make a .reg or .log file of the data that has been taken out. any suggestions?
    |:|::...<<VooDoo>>...::|:|

  4. #4
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Location
    Visalia, CA, USA
    Posts
    3,685
    This shouldn't be too hard to do. Since I'm using win98 se my registers may not be the same as yours. I think installed programs go in HKEY_CURRENT_USER\Software. There is another register that holds the names of the programs that appear in the Remove Programs box.

    This is really not a dos question buddy. And if you need to do this from dos you are going to need to write a program that reads registers (yikes).

  5. #5
    Registered User
    Join Date
    Jul 2002
    Posts
    23
    yeah well i dont wanna do a complicated program that takes forever to write. it doesnt need to get info from the registry i just need to know what programs are install. coulent you do this by making a program that would read what folders are in %programfiles% and then make a log file or a txt file containing the names of the folders??
    |:|::...<<VooDoo>>...::|:|

  6. #6
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Location
    Visalia, CA, USA
    Posts
    3,685
    You could do it that way but it wouldn't necessarily be accurate. I try and keep programs in the program files directory but not all of the programs installed are in there. I really don't see an easy way of doing this from dos. That is just the way things tend to work out when one OS is completely different than another and you need them to communicate with one another.

    Hang on a sec. I just noticed that you are using Dev-C++. That means you are your program is probably not booting before windows (since it is a windows program), just do the register thing. If you can tell me where this stuff is in the registers I can give you some code to read the registers.

  7. #7
    Registered User
    Join Date
    Jul 2002
    Posts
    13
    Still not accurate. The majority of the programs I use generate no registry keys. The best solution is to search the entire hard drive for *.exe and *.com files. Easiest way to do that is to just traverse the file structure and flip though all folders/files 1 at a time.

  8. #8
    Registered User
    Join Date
    Jul 2002
    Posts
    23
    doesnt have to be accurate i just need the programs that are in the program files which most of them write keys t the registry. like games, anti-virus, and general programs. can any one give me a code or a way to start? im not that exepert in programming... i dont even know how to program on "WINDOWS" i just know a little about "console app"
    |:|::...<<VooDoo>>...::|:|

  9. #9
    Seven years? civix's Avatar
    Join Date
    Jul 2002
    Posts
    605
    >>Copy to a Floppy

    HEHE- I like the sound of that! LOL

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. searching problem
    By DaMenge in forum C Programming
    Replies: 9
    Last Post: 09-12-2005, 02:04 AM
  2. Way to get the current open programs displayed?
    By CPPguy1111 in forum C++ Programming
    Replies: 6
    Last Post: 06-22-2005, 01:24 AM
  3. fprintf works in one function but not in the other.
    By smegly in forum C Programming
    Replies: 11
    Last Post: 05-25-2004, 04:30 PM
  4. POSIX/DOS programs?
    By nickname_changed in forum C++ Programming
    Replies: 1
    Last Post: 02-28-2003, 05:42 AM
  5. My log file player; Hit the brick wall
    By Twig in forum C Programming
    Replies: 6
    Last Post: 07-27-2002, 06:35 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21