-
October 14th, 2011, 03:27 AM
#1
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.
Last edited by Faaal; October 14th, 2011 at 08:12 AM.
-
October 14th, 2011, 07:40 AM
#2
Re: Displaying live information
Without C++ even you can get those information from dos commands.
ie: hostname, ipconfig
◄◄ hypheni ►►
-
October 14th, 2011, 08:08 AM
#3
Re: Displaying live information
Thanks for the reply hypheni, please see above as I have edited my original post now.
Last edited by Faaal; October 14th, 2011 at 08:10 AM.
-
October 14th, 2011, 10:05 AM
#4
Re: Displaying live information
Last edited by Faaal; October 21st, 2011 at 04:25 AM.
-
October 14th, 2011, 11:18 AM
#5
Re: Displaying live information
-
October 14th, 2011, 03:09 PM
#6
Re: Displaying live information
-
October 21st, 2011, 03:36 AM
#7
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.
-
October 23rd, 2011, 01:09 AM
#8
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
-
October 25th, 2011, 03:02 AM
#9
Re: Displaying live information
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.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|