Click here to Skip to main content
15,885,244 members
Home / Discussions / C#
   

C#

 
GeneralRe: .net web application Pin
vr99999999927-Dec-12 2:18
vr99999999927-Dec-12 2:18 
GeneralRe: .net web application Pin
Dave Kreskowiak27-Dec-12 2:21
mveDave Kreskowiak27-Dec-12 2:21 
GeneralRe: .net web application Pin
vr99999999927-Dec-12 18:21
vr99999999927-Dec-12 18:21 
AnswerRe: .net web application Pin
April Fans27-Dec-12 3:46
April Fans27-Dec-12 3:46 
GeneralRe: .net web application Pin
vr99999999927-Dec-12 18:23
vr99999999927-Dec-12 18:23 
QuestionCollect remote computer info Pin
Member 970663326-Dec-12 12:17
Member 970663326-Dec-12 12:17 
AnswerRe: Collect remote computer info Pin
PIEBALDconsult26-Dec-12 14:33
mvePIEBALDconsult26-Dec-12 14:33 
AnswerRe: Collect remote computer info Pin
Member 970663326-Dec-12 15:37
Member 970663326-Dec-12 15:37 
here is my script;
C#
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Diagnostics;
using System.Globalization;

namespace Computer_system
{


    public partial class Form1 : Form
    {
        private RemoteSysInformation.SystemInformation sysinfo;

        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            if (sysinfo.Get("textBox4.text") != 0)
            {
                MessageBox.Show("Error getting system information.", "System Information");
            }
            else
            {



                textBox3.Text = ("" + Computer_system.win32_computer_system.GetDomain());
                textBox2.Text = ("" + Computer_system.win32_computer_system.GetUserName());
                textBox1.Text = ("" + Computer_system.win32_computer_system.GetPSComputerName());
                textBox5.Text = ("" + Computer_system.win32_computer_system.GetManufacturer());
                textBox6.Text = ("" + Computer_system.win32_computer_system.GetModel());
                listBox1.Text = ("" + Computer_system.win32_printer.GetName());

            }
        }

        private void button4_Click(object sender, EventArgs e)
        {

            // Execute command with arguments in Dos command line
            Process.Start("Cmd.exe", @"/C mstsc.exe /v:");
            //  /C parameter means exiting Cmd.exe after executing command

        }

        private void button2_Click(object sender, EventArgs e)
        {
            // Execute command with arguments in Dos command line
            Process.Start("Cmd.exe", @"/C RC.exe 1");
            //  /C parameter means exiting Cmd.exe after executing command
        }

        private void button3_Click(object sender, EventArgs e)
        {
            // Execute command with arguments in Dos command line
            Process.Start("Cmd.exe", @"/C MSRA.exe /OfferRA");
            //  /C parameter means exiting Cmd.exe after executing command
        }

        private void Form1_Load(object sender, EventArgs e)
        {

        }


    }
}

GeneralRe: Collect remote computer info Pin
PIEBALDconsult26-Dec-12 15:42
mvePIEBALDconsult26-Dec-12 15:42 
GeneralRe: Collect remote computer info Pin
Member 970663326-Dec-12 15:44
Member 970663326-Dec-12 15:44 
GeneralRe: Collect remote computer info Pin
PIEBALDconsult26-Dec-12 15:55
mvePIEBALDconsult26-Dec-12 15:55 
GeneralRe: Collect remote computer info Pin
Member 970663326-Dec-12 15:55
Member 970663326-Dec-12 15:55 
GeneralRe: Collect remote computer info Pin
PIEBALDconsult26-Dec-12 15:57
mvePIEBALDconsult26-Dec-12 15:57 
GeneralRe: Collect remote computer info Pin
Member 970663326-Dec-12 15:58
Member 970663326-Dec-12 15:58 
GeneralRe: Collect remote computer info Pin
PIEBALDconsult26-Dec-12 16:07
mvePIEBALDconsult26-Dec-12 16:07 
GeneralRe: Collect remote computer info Pin
Dave Kreskowiak26-Dec-12 16:09
mveDave Kreskowiak26-Dec-12 16:09 
GeneralRe: Collect remote computer info Pin
Member 970663327-Dec-12 9:09
Member 970663327-Dec-12 9:09 
GeneralRe: Collect remote computer info Pin
Dave Kreskowiak27-Dec-12 11:00
mveDave Kreskowiak27-Dec-12 11:00 
Questionhowba3634@yahoo.com Pin
sherif@198026-Dec-12 8:47
sherif@198026-Dec-12 8:47 
AnswerRe: howba3634@yahoo.com Pin
Eddy Vluggen26-Dec-12 12:09
professionalEddy Vluggen26-Dec-12 12:09 
AnswerRe: howba3634@yahoo.com Pin
Thomas Daniels28-Dec-12 4:27
mentorThomas Daniels28-Dec-12 4:27 
Questionhowba3634 Pin
sherif@198026-Dec-12 8:46
sherif@198026-Dec-12 8:46 
AnswerRe: howba3634 Pin
Eddy Vluggen26-Dec-12 12:09
professionalEddy Vluggen26-Dec-12 12:09 
QuestionAutoComplete Like Visual Studio?? Pin
Guilherme Morais26-Dec-12 2:03
Guilherme Morais26-Dec-12 2:03 
AnswerRe: AutoComplete Like Visual Studio?? Pin
Sivaraman Dhamodharan26-Dec-12 2:19
Sivaraman Dhamodharan26-Dec-12 2:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.