Displaying live information
Hi guys.
I have created a lovely dobley batch file to automate a long process at work. Now however I am looking for a way to display real-time data of the computer configuration.
This would be simple, no user input - no modification - no login. Open the executable and it will display
PC Name: DEVICE01
IP Address: 192.168.1.1
If drive X is mapped to a specific directory (Mapped: Yes/No)
I'm a newbie to C++ but familiar with other languages (I'm a web developer by hobby) and want to start learning a new language.
I am aware of the DOS commands that can produce the same result, unfortunately though it is important that the output is as simple as possible, and unfortunately there's a little too much 'gibberish' for non-technical guys. I need the response to be direct as shown above.
This is important as we may have technicians doing on-site repairs and we would prefer to shy away from additional training. This live information would simply tell them what computer they are working on. And it would help us resolve any unforeseen issues - such as if the computer name was DEVICE04 but the IP ended in .03
Any help would be greatly appreciated.
Re: Displaying live information
Without C++ even you can get those information from dos commands.
ie: hostname, ipconfig
Re: Displaying live information
Thanks for the reply hypheni, please see above as I have edited my original post now.
Re: Displaying live information
Re: Displaying live information
Re: Displaying live information
Re: Displaying live information
Can anyone help me with the development of this? I understand it's a big ask but I keep finding myself scratching my head - fingers have pointed towards here and there but I'm in a world of unknown.
Re: Displaying live information
Take a look at GetAdaptersInfo() for the network information.
For the mount info, take a look at DeviceIoControl() with the
IOCTL_MOUNTMGR_QUERY_POINTS parameter.
-Erik
Re: Displaying live information
Quote:
Originally Posted by
egawtry
Take a look at GetAdaptersInfo() for the network information.
For the mount info, take a look at DeviceIoControl() with the
IOCTL_MOUNTMGR_QUERY_POINTS parameter.
-Erik
Thanks Erik. That was exactly what I was looking for, ill research those functions.