Click here to Skip to main content
15,906,567 members
Home / Discussions / C#
   

C#

 
GeneralRe: Question about split Pin
S Douglas27-Dec-12 11:29
professionalS Douglas27-Dec-12 11:29 
GeneralRe: Question about split Pin
SledgeHammer0127-Dec-12 13:34
SledgeHammer0127-Dec-12 13:34 
GeneralRe: Question about split Pin
PIEBALDconsult27-Dec-12 13:59
mvePIEBALDconsult27-Dec-12 13:59 
GeneralRe: Question about split Pin
SledgeHammer0127-Dec-12 14:29
SledgeHammer0127-Dec-12 14:29 
GeneralRe: Question about split Pin
PIEBALDconsult27-Dec-12 15:10
mvePIEBALDconsult27-Dec-12 15:10 
GeneralRe: Question about split Pin
PIEBALDconsult27-Dec-12 16:14
mvePIEBALDconsult27-Dec-12 16:14 
GeneralRe: Question about split Pin
SledgeHammer0127-Dec-12 17:24
SledgeHammer0127-Dec-12 17:24 
GeneralRe: Question about split Pin
April Fans27-Dec-12 14:14
April Fans27-Dec-12 14:14 
QuestionDebugging C# application using WinDbg 6.12.0002.633 Pin
Sharath C V27-Dec-12 0:20
professionalSharath C V27-Dec-12 0:20 
QuestionHOW TO ADD LINK TAG IN CODE OF ASPX.CS PAGE ALONG WITH TAB TEXT TO OPEN LINK. Pin
saurabh pintu goel26-Dec-12 19:51
saurabh pintu goel26-Dec-12 19:51 
AnswerRe: HOW TO ADD LINK TAG IN CODE OF ASPX.CS PAGE ALONG WITH TAB TEXT TO OPEN LINK. Pin
OriginalGriff27-Dec-12 4:12
mveOriginalGriff27-Dec-12 4:12 
Questionhow to add link tag with text in aspx.cs page Pin
saurabh pintu goel26-Dec-12 19:44
saurabh pintu goel26-Dec-12 19:44 
Question.net web application Pin
vr99999999926-Dec-12 18:28
vr99999999926-Dec-12 18:28 
AnswerRe: .net web application Pin
Dave Kreskowiak27-Dec-12 1:33
mveDave Kreskowiak27-Dec-12 1:33 
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 

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.