Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New to the CF scene
    Join Date
    Dec 2013
    Location
    Atlanta, GA
    Posts
    8
    Thanks
    8
    Thanked 0 Times in 0 Posts

    Post I need someone's help writing some code

    -I am looking for some type of script that will automatically load the information listed below and show that information in a Notepad text file for copy paste purposes:
    -Computer Name
    -Manufacturer
    -Model
    -Serial number
    -IPV4 address
    -Subnet Mask
    -Default Gateway
    -I would like to have this script automatically pull from the necessary places and compile all this info & only this specific info together in a single Notepad text file.
    -I have found where to pull this information from I just am not that good at coding. Here are the places I have found this information:
    -Computer Name:Run>MSINFO32>"System Name"
    -Manufacturer:Run>MSINFO32>"System Manufacturer", or Run>CMD>wmic>"Vendor"
    -Model:Run>MSINFO32>"System Model", or Run>CMD>wmic>"Name"
    -Serial number:Run>CMD>wmic>"IdentifyingNumber"
    -IPV4 address:Run>CMD>ipconfig>"IPv4 Address" or "IP Address"
    -Subnet Mask:Run>CMD>ipconfig>"Subnet Mask"
    -Default Gateway:Run>CMD>ipconfig>"Default Gateway"

  • #2
    New to the CF scene
    Join Date
    Dec 2013
    Location
    Atlanta, GA
    Posts
    8
    Thanks
    8
    Thanked 0 Times in 0 Posts
    Also, I need this script to run like a piece of "Live" software, meaning it "DOES NOT" have to be installed to run

  • #3
    Senior Coder alykins's Avatar
    Join Date
    Apr 2011
    Posts
    1,927
    Thanks
    46
    Thanked 203 Times in 202 Posts
    What language pray-tell are you using? You need to get the first part running... Don't worry about the 'long' way to do it, these won't help you code it better. I will give you an example I found after 1 google search for how to get machine name C#
    Code:
    Console.WriteLine(System.Environment.MachineName);
    The IP stuff? there is an entire class for all that fun stuff.. you need to jump into the pool and get wet.

    Do a little bit of research, try writing some code (not copy/paste and break it and ask it to be fixed) and then you will get good feedback. You've given us nothing to help you with here.

    I code C hash-tag .Net
    Reference: W3C W3CWiki .Net Lib
    Validate: html CSS
    Debug: Chrome FireFox IE

  • Users who have thanked alykins for this post:

    Jigsaw82 (12-12-2013)

  • #4
    New to the CF scene
    Join Date
    Dec 2013
    Location
    Atlanta, GA
    Posts
    8
    Thanks
    8
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by alykins View Post
    What language pray-tell are you using? You need to get the first part running... Don't worry about the 'long' way to do it, these won't help you code it better. I will give you an example I found after 1 google search for how to get machine name C#
    Code:
    Console.WriteLine(System.Environment.MachineName);
    The IP stuff? there is an entire class for all that fun stuff.. you need to jump into the pool and get wet.

    Do a little bit of research, try writing some code (not copy/paste and break it and ask it to be fixed) and then you will get good feedback. You've given us nothing to help you with here.
    What I meant by copy/paste is so when I run this program I can copy/paste from the results in the notepad everytime I run it. This would be to paste the results into the case notes of whatever call I have. I work in a IT call center so this is where I would use this info. I don't care about what language as long as it does the job in a single click. Thanks for any help

  • #5
    New to the CF scene
    Join Date
    Dec 2013
    Location
    Atlanta, GA
    Posts
    8
    Thanks
    8
    Thanked 0 Times in 0 Posts
    Also does any know what the best language for a task like this would be, and do you know any good websites that make it fun to learn programming?


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •