Click here to Skip to main content
12,406,592 members (54,401 online)
   

C#

 
GeneralRe: .net web application Pin
vr99999999927-Dec-12 2:18
membervr99999999927-Dec-12 2:18 
GeneralRe: .net web application Pin
Dave Kreskowiak27-Dec-12 2:21
mvpDave Kreskowiak27-Dec-12 2:21 
GeneralRe: .net web application Pin
vr99999999927-Dec-12 18:21
membervr99999999927-Dec-12 18:21 
AnswerRe: .net web application Pin
April Fans27-Dec-12 3:46
memberApril Fans27-Dec-12 3:46 
GeneralRe: .net web application Pin
vr99999999927-Dec-12 18:23
membervr99999999927-Dec-12 18:23 
QuestionCollect remote computer info Pin
Member 970663326-Dec-12 12:17
memberMember 970663326-Dec-12 12:17 
AnswerRe: Collect remote computer info Pin
PIEBALDconsult26-Dec-12 14:33
memberPIEBALDconsult26-Dec-12 14:33 
AnswerRe: Collect remote computer info Pin
Member 970663326-Dec-12 15:37
memberMember 970663326-Dec-12 15:37 
here is my script;
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
memberPIEBALDconsult26-Dec-12 15:42 
GeneralRe: Collect remote computer info Pin
Member 970663326-Dec-12 15:44
memberMember 970663326-Dec-12 15:44 
GeneralRe: Collect remote computer info Pin
PIEBALDconsult26-Dec-12 15:55
memberPIEBALDconsult26-Dec-12 15:55 
GeneralRe: Collect remote computer info Pin
Member 970663326-Dec-12 15:55
memberMember 970663326-Dec-12 15:55 
GeneralRe: Collect remote computer info Pin
PIEBALDconsult26-Dec-12 15:57
memberPIEBALDconsult26-Dec-12 15:57 
GeneralRe: Collect remote computer info Pin
Member 970663326-Dec-12 15:58
memberMember 970663326-Dec-12 15:58 
GeneralRe: Collect remote computer info Pin
PIEBALDconsult26-Dec-12 16:07
memberPIEBALDconsult26-Dec-12 16:07 
GeneralRe: Collect remote computer info Pin
Dave Kreskowiak26-Dec-12 16:09
mvpDave Kreskowiak26-Dec-12 16:09 
GeneralRe: Collect remote computer info Pin
Member 970663327-Dec-12 9:09
memberMember 970663327-Dec-12 9:09 
GeneralRe: Collect remote computer info Pin
Dave Kreskowiak27-Dec-12 11:00
mvpDave Kreskowiak27-Dec-12 11:00 
Questionhowba3634@yahoo.com Pin
sherif@198026-Dec-12 8:47
membersherif@198026-Dec-12 8:47 
AnswerRe: howba3634@yahoo.com Pin
Eddy Vluggen26-Dec-12 12:09
memberEddy Vluggen26-Dec-12 12:09 
AnswerRe: howba3634@yahoo.com Pin
ProgramFOX28-Dec-12 4:27
memberProgramFOX28-Dec-12 4:27 
Questionhowba3634 Pin
sherif@198026-Dec-12 8:46
membersherif@198026-Dec-12 8:46 
AnswerRe: howba3634 Pin
Eddy Vluggen26-Dec-12 12:09
memberEddy Vluggen26-Dec-12 12:09 
QuestionAutoComplete Like Visual Studio?? Pin
Guilherme Lopes26-Dec-12 2:03
memberGuilherme Lopes26-Dec-12 2:03 
AnswerRe: AutoComplete Like Visual Studio?? Pin
sirama200426-Dec-12 2:19
membersirama200426-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.


Advertise | Privacy | Mobile
Web02 | 2.8.160730.1 | Last Updated 30 Jul 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid