small application

Discussion in 'OT Technology' started by CruD, Nov 3, 2003.

  1. CruD

    CruD Bah, I'll just hack it

    Joined:
    Oct 25, 2001
    Messages:
    2,796
    Likes Received:
    0
    Location:
    Lakeway, TX
    I want to do a quick app in some language (just needs to be able to be run on
    win95-winXP computers without ANY additional files besides the .exe) that
    I can run on each of the computers here in the office and it will export the
    information to a .txt file on our server in a certain directory. I know VB and C++ to an extent. I've never done system info like this before.

    Like say I run it on my computer. It would export

    \\server\system information\(computer name).txt , or something similar,
    and have the following info.

    Operating system
    current user
    RAM
    processor speed
    IP address
    computer name
    installed applications?
     
  2. Astro

    Astro Code Monkey

    Joined:
    Mar 18, 2000
    Messages:
    2,047
    Likes Received:
    0
    Location:
    Cleveland Ohio
    Go after the registry! You'll be able to dig out all but RAM and processor speed (actually - with some searching you might find tidbits of both, but I don't think the processor info is going to provide you with enough detail).

    Trick is if you would want to run this program across the network. NT v4, W2k, and I believe XP will let the machine's administrator to access the registry remotely. Win9x by default lets you have at it with its registry assuming the Windows directory is shared in some manner.
     
  3. panzerfaust

    panzerfaust New Member

    Joined:
    Oct 13, 2003
    Messages:
    1,604
    Likes Received:
    0
    Location:
    Far far away
    Look into the following functions:

    GetComputerName, GetComputerNameEx
    GetUserName,GetUserNameEx
    GetVersion,GetVersionEx
    NtQuerySystemInformation
    RegOpenKey, RegOpenKeyEx

    program list can be found in the registry
     

Share This Page