Sunteți pe pagina 1din 67

INDEX

TABLE OF CONTENTS PAGE

INDEX.1 DECLARATION... 2 CERTIFICATE... 3 ACKNOWLEDGEMENTS... .4 ABSTACT5 CHAPTER 1 (INTRODUCTION)..6 1.1 OBJECTIVES 1.2 KEY FEATURES 1.3 ABOUT THE PROJECT 1.4 PROJECT MISSION 1.5 KEY TO SUCCESS CHAPTER 2 (SYSTEM REQUIREMENT)..7 2.1 HARDWARE & SOFTWARE CHAPTER 3 (SOFTWARE DEVELOPMENT LIFE CYCLE)....8 3.1 FEASIBILITY STUDY 3.2 PROJECT REQUIREMENTS AND ANALYSIS 3.3 SYSTEM DESIGN 3 4 MODULES 3.4.1 LOGIN MODULE 3.4.2 APPLICATION MODULE 3.5 DFD(DATA FLOW DIAGRAM) CHAPTER 4( CODING)..18 4.1 .NET FEATURES 4.2 .NET ARCHITECTURE 4.3 .NET EXECUTION 4.4 C# FEATURES 4.5 CODING CHAPTER 5 SCREENSHOTS...58 CHAPTER 6 TESTING..64 CHAPTER 7 FUTURE SCOPE..66 CHAPTER 8 BIBLIOGRAPHY .67
D.J.C.E.T Page 1

DECLARATION

I hereby declare that this submission is my own work and that, to the best of my knowledge and belief, it contains no material previously published or written by another person nor material which to a substantial extent has been accepted for the award of any other degree or diploma of the university or other institute of higher learning, except where due acknowledgement has been made in text.

Mukul Sharma (0722610032)

Mayank Garg (0722610031)

D.J.C.E.T Page 2

2011

D.J. College of Engineering and Technology Modinagar

CERTIFICATE
This is to certify that the Project entitled SYSTEM MANAGEMENT submitted by , MAYANK GARG AND MUKUL SHARMA in partial fulfillments for the requirements for the award of Bachelor of Technology Degree in Computer Science and Engineering at D.J. College of Engineering and Technology, Modinagar.(G.B.T.U.) is an authentic work carried out by them under my supervision and guidance. To the best of my knowledge, the matter embodied in the thesis has not been submitted to any other University / Institute for the award of any Degree or Diploma.

Date: Mr. Krishnanand Pandey Dept .of Computer Science and Engineering D.J. College of Engineering and Technology Modinagar 201204. (Ghaziabad)

D.J.C.E.T Page 3

Acknowledgement

We express our deep sense of gratitude and indebtedness to our Faculty Mr. Krishnanand Pandey and to our HOD Mr.Sanjeev Misra for his valuable guidance, consistent encouragements, untiring and continuous supervision and support at every stage of project.

We are thankful to the Lab Technicians of DJCET and instructors for their help, co-operation and for extending all possible facilities within their means to complete this project.

At last but not the least we express our thanks to all those who directly or indirectly helped us and encouraged us in carrying out this work.

Mukul Sharma (0722610032)

Mayank Garg (0722610031)

D.J.C.E.T Page 4

ABSTRACT
In competitive world it is necessary for organization to take advantage to every opportunity to reduce cost, improve quality and provide service. project with a big facility for system management. A proper management helps user to reduce their efforts and provide many functionalities. This project helps to perform multiple tasks on single platform. So we have to think to make the

It is a multipurpose utility which allow a user to obtain system information on a single platform. It helps to know the status of the system and allow them to start new task, terminate any process. Its a project which helps in system management.

D.J.C.E.T Page 5

CHAPTER 1 (INTRODUCTION)
1.1 Objective
In competitive world it is necessary for organization to take advantage to every opportunity to reduce cost, improve quality and provide service. project with a big facility for system management. A proper management helps user to reduce their efforts and provide many functionalities. This project helps to perform multiple tasks on single platform. So we have to think to make the

User friendliness
o This project will have user -friendl y screens. The screens designed will have very simple functionalit y for retrieving/ adding/ updating the information.

Compatibility
o This project offers great compatibilit y, as it will be designed with proper methodology, new tools and technology

Reliability & Robustness


o This project is built with proper architecture and design and it will provide a reliable and robust application to the users.

Performance
The performance of this application will be high because of its optimize design and sound architecture.

Extensibility
o This project has a modular design and would provide the flexibilit y of adding, future modules to the application

1.2 Key features


Its a multipurpose utility which allow users to perform many system management task on a single platform.
Page 6

D.J.C.E.T

It helps user to view the information of other systems. It helps to find the details of all the system on single systems. It saves time. It can start any process or task. It saves power.

1.3 ABOUT THE PROJECT


It is a multipurpose utility which allow a user to obtain system information on a single platform. It helps to know the status of the system and allow them to start new task, terminate any process. Its a project which helps in system management. Many useful commands have been mentioned in the project with their description so they have no need to know all commands. It allows a user (administrator) to shutdown computer systems remotely. A user can do these operations, He has no need to know all the command. He can shutdown the remote computers. He can find the available software on the system and can do many more things.

On the basis if work done in an organization handled Network Information, the following conclusion emerge from the networking, This project has achieved the objective of replacing/augmenting the conventional system of arranging as could be conducted by a typical in any department within organization. It provides much functionality which helps an administrator. Using this we can save time. It is capable to know the information of other system

1.4 Project Mission


To handle the any kind of issues regarding to the system management in the industry related to the system

D.J.C.E.T Page 7

1.5 Key to success


In the system nobody unknown person are not interfere until they know about the process name and password id correct.

CHAPTER 2 (SOFTWARE AND HARDWARE REQUIREMENT)


2.1 Hardware and Software System Requirements:
Minimum recommended Resources can be defined as-

Client Requirements

Hardware
Pentium (& above) 40 GB Hard-Disk 1 GB RAM

Software
Microsoft .NET Framework 4.0 OS Win NT WS/2000/2000 Professional/Window XP

Designing Tools

Microsoft Visual Studio .NET 2010 Microsoft .NET Framework 4.0 Front End Programming Language: C#

D.J.C.E.T Page 8

CHAPTER 3 (SOFTWARE DEVELOPMENT LIFE CYCLE)

3.1 FEASIBILITY STUDY


Once a preliminary area of application has been identified, it may then be subjected to a more rigorous examination in a feasibility study. By the initial investigation a user has recognized the need, user requirements are determined and the problem has been identified. Next step is to determine an exactly what the proposed system is to do by defining its expected performance we will carry out this type of work in the feasibility study. In the conduct of feasibility study the analyst will usually consider distinct but interrelated types of feasibility that are as follows:

Technical Feasibility
This is concerned with specifying equipment and software that will successfully satisfy the users requirement the technical needs of the system may vary considerably.

Operational Feasibility
It is mainly related to human organizational and political aspects.

Economic feasibility
Technique used for evaluating the effectiveness of a proposed system. More commonly known as cost/benefit analysis; the procedure is to saving that are exposed from a proposed system and outweigh costs, decision is taken to design and economically feasible determine the benefits and

compare them with costs. If benefits is fully

Implement the system. This project

D.J.C.E.T Page 9

Social Feasibility
Social feasibility is determinations of weather a Projects will be acceptable to the people or not. Whereas this project on-line shopping is perfectly social many people benefited from it .it has make our day-to-day life very easy. Management Feasibility It is actually the determination of whether a proposed Project will be acceptable to management if does not accept or give a negative support to it, the analyst will tend to view the project as a non-feasible one. Legal feasibility Legal feasibility is a determination of weather project is infringes on known acts or not on closer investigation it may found that this project on- line shopping infringes on several legal areas because it is protected under several legal known acts. Time Feasibility are

Time feasibility determines of whether system is implemented within stipulated time. This project is completed within stipulated time frame

3.2 PROJECT REQUIREMENT AND ANALYSIS

SYSTEM ANALYSIS
System analysis is an activity that requires inputs from a number of directives. The task of a system analyst is not algorithmic nature. Where we can pursue vigorously a series of steps and come out with the appropriate system. Analysis is done through various models that is

D.J.C.E.T Page 10

Requirement analysis
Requirement analysis is a software engineering task that bridges the gap between system level software analysis and software design.

System engineering

Software requirement analysis

Software design

Requirement analysis enables the system engineer to specify software function and performance indicate s/w interface with other system elements and establish constraints that software must meet. Requirements analysis allows the software engineer to refine the software allocation and build modules of the data, function and behavior domain that will be treated by software. Requirement specification provides the description to the developer and the customer with the mean to access quality rule. There are four basic elements in system analysis.-

OUTPUT First of all, we must determine what the objectives or goals are, what do us internal to

achieve, what is the purpose of our work. INPUT Once we know the output, we can easily determine when the inputs should be sometimes,

it may happen that the required information may not be readily available in the proper form. Accuracy If the data is not accurate the output will be also not correct. TIMELINESS

D.J.C.E.T Page 11

If data is not obtained in time. The entire system talks into areas. System development, a process consisting if the two major steps of system analysis and design.

SYSTEM REQUIREMENTS The following requirements should be kept in mind while developing this project: Protection from unauthorized access Easily access the detailed of all SYSTEM INFO Give the right information to the authorized user

3.3 SOFTWARE DESIGN SYSTEM DESIGN


System Design develops the architectural detail required to build a system or product. The system design process encompasses the following activities: Partition the analysis model into subsystems. Allocate subsystems to processors and tasks. Develop a design for the user interface. Identify global resources and the control mechanisms required to access them. Design an appropriate control mechanism for the system, including task management. Consider how boundary conditions should be handled.

The software design phase of the project is divided into two sections: User interface (UI) or front end Back end or database design

3.4 MODULES DESIGINING THE FRONT-END USER INTERFACES:


The design of the project is divided into the following modules: Login Module Application Module
D.J.C.E.T Page 12

Lets briefly examine these modules of the project.

Login Module
The Login module is an important module, which helps in securing project. This module ensures that only authenticated and authorized users can access all the links and navigation paths to perform the user related functions. . This module also verifies the user name and password of the user who want use the project. If the user has to find authenticate then the user enter authorized page. In this Login module for design phase we take two labels, two text box and the login button for submit.

Application module
This module allows a user to obtain system information on a single platform. It helps to know the status of the system and allow them to start new task, terminate any process. Its a project which helps in system management. This is the main working module. Many useful commands have been mentioned in the project with their description so they have no need to know all commands. It allows a user (administrator) to shutdown computer systems remotely. It provides many feature like user needs not to remember all the command.

3.5 DATA FLOW DIAGRAM


Data flow diagram (DFD) is a graphical representation, used to show the functional relationship of the values computed by a system, including input values, output values internal data stores. The data flow diagram contain following element. Processes Data flow Actors Data store

In data flow diagram, processes that transferred the data, data flow that move actor object that produce and consume data, data and store that store data.

D.J.C.E.T Page 13

Processes: - processes are used to transform the data values. In the lowest level they work like pure function. The symbol of processes in

Processes Processes Name Name

Figure (a) Data Flow: - Data flow is used for the connection. It connects the output of an object to the input for another object or processes. By the data flow.

Line represents data flow-

Actors (External Entity):- An active object in the (DFD) which producing or receiving data flow with values is called actors. Input and output of data flow are attached with actors.

D.J.C.E.T Page 14

Actor

Figure (b)

Data stores: - A data store indicate a passive object within a data flow diagram that store data for later access. It does not manage ay operation but produce any result or data access. A data stores allow value to be accessed in different order then they are generated.

Data stores

Processes

Figure (c)

D.J.C.E.T Page 15

DATA FLOW DIAGRAM:

0-LEVEL

USER

applicati on

OUTPUT

1-LEVEL

user
COMMAND

RESPONSE E Enter user name and password Invalid user (not allowed)

Application module

login

Verify user

Return valid/invalid

authentic ation
D.J.C.E.T Page 16

2-Level DFD

SYSTEM INFORM ATION


REQUEST AND RESPONSE REQUEST AND RESPONS E

user

COMMAND

DDNNNNN DNDNNNN NNNNDND ND N


RESPONSE

DISK INFORM ATION

Enter user name and password

E Invalid user (not allowed)

login

Applicati on module

REQUEST AND RESPONSE

PROCESS

INFORM ATION

Verify user

Return valid/invalid

REQUEST AND RESPONSE REQUEST AND RESPONSE

Authentic ation

REMOTE SHUTDO WN

SHUT DOWN SYSTEM

D.J.C.E.T Page 17

CHAPTER 4 (CODING)
4.1 The .NET Framework feature
The .net Framework is a development framework that provides a new programming interface to windows services and APIs, and integrates a number of technologies that emerged from Microsoft during late 1990s. The .net Framework is also a software platform for running and deployment of windows-based software systems. Core Features of .NET Language interoperability Fully object-oriented language Common runtime engine shared by all languages Better security Better performance Simplified deployment

4.2 .NET Architecture


The .Net framework sits on top of the windows operating system. Consist of the following component Language compiler Common language runtime .Net framework base class library

D.J.C.E.T Page 18

4.3 .NET Execution

Source code

Language Compiler

MSIL Assembly

Class libraries (MSIL) Class Loader

JIT Compiler

Native code

Execution and Managment

D.J.C.E.T Page 19

4.4 C# FEATURES:
An objective of C# in its very best style. The version we are using is C# 3.0 on the .NET 3.5 Beta 2 Framework (August 2007). C# 1.0 came out in December 2002, embodying much of the research in OOP that had taken place since Java was launched seven years previously. C# 2.0 was released in final form in September 2005, and the ECMA standard was made available in June 2006. C# 2.0 added five significant features to C# 1.0, most of which are used as follows:

Generics that allow classes, structs, interfaces, delegates, and methods to be parameterized by the types of data they store and manipulate Anonymous methods that allow code blocks to be written inline where delegate values are expected Iterators, which are methods to incrementally compute and yield sequences of values Partial types that allow classes, structs, and interfaces to be broken into multiple pieces stored in different source files for easier development and maintenance Nullable types that represent values that possibly are unknown; they support all possible values of an underlying type plus an additional null state

Within Microsoft, work continued on the language, with a particular emphasis on the integration of SQL database interfacing and the associated dynamic typing required. The report on Version 3.0 of the language, finalized in May 2006, includes substantial advances in integrating the functional and database programming paradigms into mainline object-orientation:

All these new features are used in a natural way in this book. For full details on the Entire C# 3.0 languages see the reference documentation available at http://msdn2. microsoft.com/vcsharp.

D.J.C.E.T Page 20

4.5 CODING
Form 1 Designer
Namespace WindowsFormsApplication4 { Partial class login { /// <summary> /// required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> protected override void Dispose(bool disposing) { if (disposing && (components != null)) { components.Dispose(); } base.Dispose(disposing); } #region Windows Form Designer generated code /// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(login)); this.label1 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label(); this.textusername = new System.Windows.Forms.TextBox(); this.textpassword = new System.Windows.Forms.TextBox(); this.button1 = new System.Windows.Forms.Button(); this.button2 = new System.Windows.Forms.Button(); this.iblmessage = new System.Windows.Forms.Label(); this.button3 = new System.Windows.Forms.Button();
D.J.C.E.T Page 21

this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel(); this.pictureBox1 = new System.Windows.Forms.PictureBox(); this.tableLayoutPanel1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit(); this.SuspendLayout(); // // label1 // resources.ApplyResources(this.label1, "label1"); this.label1.Name = "label1"; // // label2 // resources.ApplyResources(this.label2, "label2"); this.label2.ForeColor = System.Drawing.Color.Black; this.label2.Name = "label2"; // // textusername // resources.ApplyResources(this.textusername, "textusername"); this.textusername.Name = "textusername"; this.textusername.TextChanged += new System.EventHandler(this.textusername_TextChanged); // // textpassword // resources.ApplyResources(this.textpassword, "textpassword"); this.textpassword.Name = "textpassword"; // // button1 // resources.ApplyResources(this.button1, "button1"); this.button1.Name = "button1"; this.button1.UseVisualStyleBackColor = true; this.button1.Click += new System.EventHandler(this.button1_Click); // // button2 // resources.ApplyResources(this.button2, "button2"); this.button2.Name = "button2"; this.button2.UseVisualStyleBackColor = true; this.button2.Click += new System.EventHandler(this.button2_Click); // // iblmessage // resources.ApplyResources(this.iblmessage, "iblmessage");
D.J.C.E.T Page 22

this.iblmessage.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; this.iblmessage.ForeColor = System.Drawing.Color.Blue; this.iblmessage.Name = "iblmessage"; this.iblmessage.Click += new System.EventHandler(this.iblmessage_Click); // // button3 // resources.ApplyResources(this.button3, "button3"); this.button3.Name = "button3"; this.button3.UseVisualStyleBackColor = true; this.button3.Click += new System.EventHandler(this.button3_Click); // // tableLayoutPanel1 // resources.ApplyResources(this.tableLayoutPanel1, "tableLayoutPanel1"); this.tableLayoutPanel1.Controls.Add(this.textusername, 1, 0); this.tableLayoutPanel1.Controls.Add(this.label1, 0, 0); this.tableLayoutPanel1.Controls.Add(this.textpassword, 1, 1); this.tableLayoutPanel1.Controls.Add(this.label2, 0, 1); this.tableLayoutPanel1.Name = "tableLayoutPanel1"; this.tableLayoutPanel1.Paint += new System.Windows.Forms.PaintEventHandler(this.tableLayoutPanel1_Paint); // // pictureBox1 // resources.ApplyResources(this.pictureBox1, "pictureBox1"); this.pictureBox1.Name = "pictureBox1"; this.pictureBox1.TabStop = false; this.pictureBox1.Click += new System.EventHandler(this.pictureBox1_Click); // // login // this.AcceptButton = this.button1; resources.ApplyResources(this, "$this"); this.AccessibleRole = System.Windows.Forms.AccessibleRole.Window; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.Controls.Add(this.pictureBox1); this.Controls.Add(this.tableLayoutPanel1); this.Controls.Add(this.button3); this.Controls.Add(this.iblmessage); this.Controls.Add(this.button2); this.Controls.Add(this.button1); this.Name = "login"; this.Load += new System.EventHandler(this.login_Load); this.tableLayoutPanel1.ResumeLayout(false); this.tableLayoutPanel1.PerformLayout();
D.J.C.E.T Page 23

((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); } #endregion private System.Windows.Forms.Label label1; private System.Windows.Forms.Label label2; private System.Windows.Forms.TextBox textusername; private System.Windows.Forms.TextBox textpassword; private System.Windows.Forms.Button button1; private System.Windows.Forms.Button button2; private System.Windows.Forms.Label iblmessage; private System.Windows.Forms.Button button3; private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1; private System.Windows.Forms.PictureBox pictureBox1; } }

Form 1 code
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using System.Resources;

namespace WindowsFormsApplication4 { public partial class login : Form { public login() { InitializeComponent(); }

int ctr;
D.J.C.E.T Page 24

private void button1_Click(object sender, EventArgs e) { string loginname, password; loginname = textusername.Text; password = textpassword.Text; ctr = ctr + 1; if ((loginname == "djcet") && password == "djcet") { { ctr = 0; login frm = new login(); this.Hide(); frm.Close();

Form2 ob = new Form2(); MessageBox.Show("welcome to Djcet Intranet communication"); ob.Show(); ob.Activate(); } } else if (ctr < 3) { iblmessage.Visible = true; iblmessage.Text = "Incorrect User Name or Password"; textusername.Focus(); } else { MessageBox.Show("Unauthorized Access.Aborting. . . ."); } } private void button2_Click(object sender, EventArgs e) { textusername.Text = ""; textpassword.Text = ""; }
D.J.C.E.T Page 25

private void button3_Click(object sender, EventArgs e) { this.Close(); } private void pictureBox1_Click(object sender, EventArgs e) { } private void login_Load(object sender, EventArgs e) { } private void textusername_TextChanged(object sender, EventArgs e) { } private void iblmessage_Click(object sender, EventArgs e) { MessageBox.Show("your question"); } private void tableLayoutPanel1_Paint(object sender, PaintEventArgs e) { }

} }

Form 2 designer
namespace WindowsFormsApplication4 {
D.J.C.E.T Page 26

partial class Form2 { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> protected override void Dispose(bool disposing) { if (disposing && (components != null)) { components.Dispose(); } base.Dispose(disposing); } #region Windows Form Designer generated code /// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form2)); this.button1 = new System.Windows.Forms.Button(); this.button2 = new System.Windows.Forms.Button(); this.button3 = new System.Windows.Forms.Button(); this.menuStrip1 = new System.Windows.Forms.MenuStrip(); this.fileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.openToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.saveToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.editToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.copyToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.cutToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.pasteToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.exitToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.exitToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); this.helpToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
D.J.C.E.T Page 27

this.helpToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); this.aboutUsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.toolTip1 = new System.Windows.Forms.ToolTip(this.components); this.textBox1 = new System.Windows.Forms.TextBox(); this.button4 = new System.Windows.Forms.Button(); this.button7 = new System.Windows.Forms.Button(); this.button8 = new System.Windows.Forms.Button(); this.listBox1 = new System.Windows.Forms.ListBox(); this.dateTimePicker1 = new System.Windows.Forms.DateTimePicker(); this.helpProvider1 = new System.Windows.Forms.HelpProvider(); this.richTextBox2 = new System.Windows.Forms.RichTextBox(); this.label1 = new System.Windows.Forms.Label(); this.label3 = new System.Windows.Forms.Label(); this.label4 = new System.Windows.Forms.Label(); this.richTextBox1 = new System.Windows.Forms.RichTextBox(); this.label5 = new System.Windows.Forms.Label(); this.timer1 = new System.Windows.Forms.Timer(this.components); this.label6 = new System.Windows.Forms.Label(); this.button9 = new System.Windows.Forms.Button(); this.label2 = new System.Windows.Forms.Label(); this.richTextBox3 = new System.Windows.Forms.RichTextBox(); this.button5 = new System.Windows.Forms.Button(); this.button10 = new System.Windows.Forms.Button(); this.pictureBox1 = new System.Windows.Forms.PictureBox(); this.textBox2 = new System.Windows.Forms.TextBox(); this.menuStrip1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit(); this.SuspendLayout(); // // button1 // this.button1.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.button1.Location = new System.Drawing.Point(692, 491); this.button1.Name = "button1"; this.button1.Size = new System.Drawing.Size(111, 23); this.button1.TabIndex = 4; this.button1.Text = "Available Software"; this.toolTip1.SetToolTip(this.button1, "Shows installed software"); this.button1.UseVisualStyleBackColor = true; this.button1.Click += new System.EventHandler(this.button1_Click); // // button2 // this.button2.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
D.J.C.E.T Page 28

this.button2.Location = new System.Drawing.Point(919, 234); this.button2.Name = "button2"; this.button2.Size = new System.Drawing.Size(98, 23); this.button2.TabIndex = 2; this.button2.Text = "Shut Down"; this.toolTip1.SetToolTip(this.button2, "Shows running process"); this.button2.UseVisualStyleBackColor = true; this.button2.Click += new System.EventHandler(this.button2_Click); // // button3 // this.button3.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.button3.Location = new System.Drawing.Point(1023, 234); this.button3.Name = "button3"; this.button3.Size = new System.Drawing.Size(111, 23); this.button3.TabIndex = 3; this.button3.Text = "MSTC"; this.toolTip1.SetToolTip(this.button3, "TO run mstc command"); this.button3.UseVisualStyleBackColor = true; this.button3.Click += new System.EventHandler(this.button3_Click); // // menuStrip1 // this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.fileToolStripMenuItem, this.editToolStripMenuItem, this.exitToolStripMenuItem, this.helpToolStripMenuItem}); this.menuStrip1.Location = new System.Drawing.Point(0, 0); this.menuStrip1.Name = "menuStrip1"; this.menuStrip1.Size = new System.Drawing.Size(1178, 24); this.menuStrip1.TabIndex = 3; this.menuStrip1.Text = "menuStrip1"; // // fileToolStripMenuItem // this.fileToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.openToolStripMenuItem, this.saveToolStripMenuItem}); this.fileToolStripMenuItem.Name = "fileToolStripMenuItem"; this.fileToolStripMenuItem.Size = new System.Drawing.Size(37, 20); this.fileToolStripMenuItem.Text = "&File"; // // openToolStripMenuItem
D.J.C.E.T Page 29

// this.openToolStripMenuItem.Name = "openToolStripMenuItem"; this.openToolStripMenuItem.Size = new System.Drawing.Size(179, 22); this.openToolStripMenuItem.Text = "&Open clt+o"; this.openToolStripMenuItem.Click += new System.EventHandler(this.openToolStripMenuItem_Click); // // saveToolStripMenuItem // this.saveToolStripMenuItem.Name = "saveToolStripMenuItem"; this.saveToolStripMenuItem.Size = new System.Drawing.Size(179, 22); this.saveToolStripMenuItem.Text = "&Save clt+s"; this.saveToolStripMenuItem.Click += new System.EventHandler(this.saveToolStripMenuItem_Click); // // editToolStripMenuItem // this.editToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.copyToolStripMenuItem, this.cutToolStripMenuItem, this.pasteToolStripMenuItem}); this.editToolStripMenuItem.Name = "editToolStripMenuItem"; this.editToolStripMenuItem.Size = new System.Drawing.Size(39, 20); this.editToolStripMenuItem.Text = "&Edit"; // // copyToolStripMenuItem // this.copyToolStripMenuItem.Name = "copyToolStripMenuItem"; this.copyToolStripMenuItem.Size = new System.Drawing.Size(102, 22); this.copyToolStripMenuItem.Text = "Copy"; // // cutToolStripMenuItem // this.cutToolStripMenuItem.Name = "cutToolStripMenuItem"; this.cutToolStripMenuItem.Size = new System.Drawing.Size(102, 22); this.cutToolStripMenuItem.Text = "Cut"; // // pasteToolStripMenuItem // this.pasteToolStripMenuItem.Name = "pasteToolStripMenuItem"; this.pasteToolStripMenuItem.Size = new System.Drawing.Size(102, 22); this.pasteToolStripMenuItem.Text = "Paste"; // // exitToolStripMenuItem //
D.J.C.E.T Page 30

this.exitToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.exitToolStripMenuItem1}); this.exitToolStripMenuItem.Name = "exitToolStripMenuItem"; this.exitToolStripMenuItem.Size = new System.Drawing.Size(37, 20); this.exitToolStripMenuItem.Text = "E&xit"; this.exitToolStripMenuItem.Click += new System.EventHandler(this.exitToolStripMenuItem_Click); // // exitToolStripMenuItem1 // this.exitToolStripMenuItem1.Name = "exitToolStripMenuItem1"; this.exitToolStripMenuItem1.Size = new System.Drawing.Size(92, 22); this.exitToolStripMenuItem1.Text = "Exit"; this.exitToolStripMenuItem1.Click += new System.EventHandler(this.exitToolStripMenuItem1_Click); // // helpToolStripMenuItem // this.helpToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.helpToolStripMenuItem1, this.aboutUsToolStripMenuItem}); this.helpToolStripMenuItem.Name = "helpToolStripMenuItem"; this.helpToolStripMenuItem.Size = new System.Drawing.Size(44, 20); this.helpToolStripMenuItem.Text = "Help"; // // helpToolStripMenuItem1 // this.helpToolStripMenuItem1.Name = "helpToolStripMenuItem1"; this.helpToolStripMenuItem1.Size = new System.Drawing.Size(122, 22); this.helpToolStripMenuItem1.Text = "Help"; // // aboutUsToolStripMenuItem // this.aboutUsToolStripMenuItem.Name = "aboutUsToolStripMenuItem"; this.aboutUsToolStripMenuItem.Size = new System.Drawing.Size(122, 22); this.aboutUsToolStripMenuItem.Text = "About us"; this.aboutUsToolStripMenuItem.Click += new System.EventHandler(this.aboutUsToolStripMenuItem_Click); // // toolTip1 // this.toolTip1.IsBalloon = true; this.toolTip1.ToolTipIcon = System.Windows.Forms.ToolTipIcon.Info; this.toolTip1.ToolTipTitle = "Info";
D.J.C.E.T Page 31

this.toolTip1.Popup += new System.Windows.Forms.PopupEventHandler(this.toolTip1_Popup); // // textBox1 // this.textBox1.Location = new System.Drawing.Point(681, 575); this.textBox1.Name = "textBox1"; this.textBox1.Size = new System.Drawing.Size(188, 20); this.textBox1.TabIndex = 5; this.toolTip1.SetToolTip(this.textBox1, "write name of task"); this.textBox1.TextChanged += new System.EventHandler(this.textBox1_TextChanged); // // button4 // this.button4.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.button4.Location = new System.Drawing.Point(681, 620); this.button4.Name = "button4"; this.button4.Size = new System.Drawing.Size(75, 23); this.button4.TabIndex = 6; this.button4.Text = "Start"; this.toolTip1.SetToolTip(this.button4, "Start a new task"); this.button4.UseVisualStyleBackColor = true; this.button4.Click += new System.EventHandler(this.button4_Click); // // button7 // this.button7.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.button7.Location = new System.Drawing.Point(684, 234); this.button7.Name = "button7"; this.button7.Size = new System.Drawing.Size(111, 23); this.button7.TabIndex = 0; this.button7.Text = "Available System"; this.toolTip1.SetToolTip(this.button7, "Show available systems"); this.button7.UseVisualStyleBackColor = true; this.button7.Click += new System.EventHandler(this.button7_Click); // // button8 // this.button8.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.button8.Location = new System.Drawing.Point(30, 644); this.button8.Name = "button8"; this.button8.Size = new System.Drawing.Size(75, 23); this.button8.TabIndex = 8;
D.J.C.E.T Page 32

this.button8.Text = "Search"; this.toolTip1.SetToolTip(this.button8, "Press to search running process"); this.button8.UseVisualStyleBackColor = true; this.button8.Click += new System.EventHandler(this.button8_Click); // // listBox1 // this.listBox1.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.listBox1.FormattingEnabled = true; this.listBox1.ItemHeight = 16; this.listBox1.Items.AddRange(new object[] { "mstsc \t\tto connect with other system", "winword \t\tto open micrsoft word", "wordpad\t\tto open wordpad", "explorer\t\tto open explorer", "iexplore\t\tinternet explorer", "cmd\t\tto open comand prompt", "c:\t\tto open c drive", "d:\t\tto open d drive", "notepad\t\tto open notepad", "ipconfig\t\tto find the configuration of ip", "ping \t\tto find the connectivity of other computer", "ping -t\t\tto find out host until stop", "ping-a\t\tto resolve address to host name", "ping-j \t\tloose source route along host-list", ""}); this.listBox1.Location = new System.Drawing.Point(906, 575); this.listBox1.Name = "listBox1"; this.listBox1.Size = new System.Drawing.Size(263, 20); this.listBox1.TabIndex = 7; this.toolTip1.SetToolTip(this.listBox1, "Shortcut list"); // // dateTimePicker1 // this.dateTimePicker1.ImeMode = System.Windows.Forms.ImeMode.On; this.dateTimePicker1.Location = new System.Drawing.Point(968, 43); this.dateTimePicker1.Name = "dateTimePicker1"; this.dateTimePicker1.Size = new System.Drawing.Size(201, 20); this.dateTimePicker1.TabIndex = 10; this.dateTimePicker1.Value = new System.DateTime(2010, 10, 27, 0, 0, 0, 0); this.dateTimePicker1.ValueChanged += new System.EventHandler(this.Form2_Load); this.dateTimePicker1.EnabledChanged += new System.EventHandler(this.Form2_Load); this.dateTimePicker1.Validated += new System.EventHandler(this.Form2_Load); // // richTextBox2
D.J.C.E.T Page 33

// this.richTextBox2.Enabled = false; this.richTextBox2.Location = new System.Drawing.Point(692, 323); this.richTextBox2.Name = "richTextBox2"; this.helpProvider1.SetShowHelp(this.richTextBox2, true); this.richTextBox2.Size = new System.Drawing.Size(442, 141); this.richTextBox2.TabIndex = 21; this.richTextBox2.Text = ""; // // label1 // this.label1.AutoSize = true; this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label1.Location = new System.Drawing.Point(681, 545); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(101, 16); this.label1.TabIndex = 6; this.label1.Text = "Start a new task"; // // label3 // this.label3.AutoSize = true; this.label3.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label3.Location = new System.Drawing.Point(681, 67); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(73, 16); this.label3.TabIndex = 13; this.label3.Tag = ""; this.label3.Text = "Information"; // // label4 // this.label4.AutoSize = true; this.label4.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label4.Location = new System.Drawing.Point(27, 469); this.label4.Name = "label4"; this.label4.Size = new System.Drawing.Size(168, 15); this.label4.TabIndex = 14; this.label4.Text = "Running process of computer"; // // richTextBox1 // this.richTextBox1.Enabled = false;
D.J.C.E.T Page 34

this.richTextBox1.Location = new System.Drawing.Point(681, 99); this.richTextBox1.Name = "richTextBox1"; this.richTextBox1.Size = new System.Drawing.Size(442, 110); this.richTextBox1.TabIndex = 0; this.richTextBox1.Text = ""; // // label5 // this.label5.AutoSize = true; this.label5.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label5.Location = new System.Drawing.Point(678, 671); this.label5.Name = "label5"; this.label5.Size = new System.Drawing.Size(175, 16); this.label5.TabIndex = 20; this.label5.Text = "Shut Down Remote Mchines"; // // timer1 // this.timer1.Tick += new System.EventHandler(this.timer1_Tick_1); // // label6 // this.label6.AutoSize = true; this.label6.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label6.Location = new System.Drawing.Point(689, 295); this.label6.Name = "label6"; this.label6.Size = new System.Drawing.Size(67, 16); this.label6.TabIndex = 22; this.label6.Text = "Softwares"; // // button9 // this.button9.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.button9.Location = new System.Drawing.Point(968, 671); this.button9.Name = "button9"; this.button9.Size = new System.Drawing.Size(96, 23); this.button9.TabIndex = 9; this.button9.Text = "ShutDown Now"; this.button9.UseVisualStyleBackColor = true; this.button9.Click += new System.EventHandler(this.button9_Click); // // label2 //
D.J.C.E.T Page 35

this.label2.AutoSize = true; this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label2.Location = new System.Drawing.Point(903, 546); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(58, 15); this.label2.TabIndex = 25; this.label2.Text = "Shortcuts"; this.label2.Click += new System.EventHandler(this.label2_Click); // // richTextBox3 // this.richTextBox3.Enabled = false; this.richTextBox3.Location = new System.Drawing.Point(30, 499); this.richTextBox3.Name = "richTextBox3"; this.richTextBox3.Size = new System.Drawing.Size(421, 117); this.richTextBox3.TabIndex = 27; this.richTextBox3.Text = ""; // // button5 // this.button5.Location = new System.Drawing.Point(794, 621); this.button5.Name = "button5"; this.button5.Size = new System.Drawing.Size(75, 23); this.button5.TabIndex = 28; this.button5.Text = "Kill"; this.button5.UseVisualStyleBackColor = true; this.button5.Click += new System.EventHandler(this.button5_Click_2); // // button10 // this.button10.Location = new System.Drawing.Point(801, 235); this.button10.Name = "button10"; this.button10.Size = new System.Drawing.Size(112, 23); this.button10.TabIndex = 29; this.button10.Text = "System Info"; this.button10.UseVisualStyleBackColor = true; this.button10.Click += new System.EventHandler(this.button10_Click); // // pictureBox1 // this.pictureBox1.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image"))); this.pictureBox1.Location = new System.Drawing.Point(12, 43); this.pictureBox1.Name = "pictureBox1"; this.pictureBox1.Size = new System.Drawing.Size(589, 396);
D.J.C.E.T Page 36

this.pictureBox1.TabIndex = 5; this.pictureBox1.TabStop = false; this.pictureBox1.Click += new System.EventHandler(this.pictureBox1_Click); // // textBox2 // this.textBox2.Location = new System.Drawing.Point(201, 473); this.textBox2.Name = "textBox2"; this.textBox2.Size = new System.Drawing.Size(123, 20); this.textBox2.TabIndex = 30; // // Form2 // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoSize = true; this.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; this.ClientSize = new System.Drawing.Size(1178, 725); this.Controls.Add(this.textBox2); this.Controls.Add(this.button10); this.Controls.Add(this.button5); this.Controls.Add(this.richTextBox3); this.Controls.Add(this.label2); this.Controls.Add(this.listBox1); this.Controls.Add(this.button9); this.Controls.Add(this.label6); this.Controls.Add(this.richTextBox2); this.Controls.Add(this.label5); this.Controls.Add(this.button8); this.Controls.Add(this.button7); this.Controls.Add(this.richTextBox1); this.Controls.Add(this.label4); this.Controls.Add(this.label3); this.Controls.Add(this.button4); this.Controls.Add(this.textBox1); this.Controls.Add(this.label1); this.Controls.Add(this.pictureBox1); this.Controls.Add(this.dateTimePicker1); this.Controls.Add(this.button3); this.Controls.Add(this.button2); this.Controls.Add(this.button1); this.Controls.Add(this.menuStrip1); this.HelpButton = true; this.ImeMode = System.Windows.Forms.ImeMode.Off; this.MainMenuStrip = this.menuStrip1; this.Name = "Form2";
D.J.C.E.T Page 37

this.helpProvider1.SetShowHelp(this, true); this.Text = "DJCET INTRANET"; this.WindowState = System.Windows.Forms.FormWindowState.Maximized; this.Load += new System.EventHandler(this.Form2_Load); this.menuStrip1.ResumeLayout(false); this.menuStrip1.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); } #endregion private System.Windows.Forms.Button button1; private System.Windows.Forms.Button button2; private System.Windows.Forms.Button button3; private System.Windows.Forms.MenuStrip menuStrip1; private System.Windows.Forms.ToolStripMenuItem fileToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem openToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem saveToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem editToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem exitToolStripMenuItem; private System.Windows.Forms.ToolTip toolTip1; private System.Windows.Forms.DateTimePicker dateTimePicker1; private System.Windows.Forms.PictureBox pictureBox1; private System.Windows.Forms.HelpProvider helpProvider1; private System.Windows.Forms.Label label1; private System.Windows.Forms.TextBox textBox1; private System.Windows.Forms.Button button4; private System.Windows.Forms.ToolStripMenuItem exitToolStripMenuItem1; private System.Windows.Forms.Label label3; private System.Windows.Forms.Label label4; private System.Windows.Forms.RichTextBox richTextBox1; private System.Windows.Forms.Button button7; private System.Windows.Forms.Button button8; private System.Windows.Forms.Label label5; private System.Windows.Forms.Timer timer1; private System.Windows.Forms.RichTextBox richTextBox2; private System.Windows.Forms.Label label6; private System.Windows.Forms.Button button9; private System.Windows.Forms.ListBox listBox1; private System.Windows.Forms.Label label2; private System.Windows.Forms.ToolStripMenuItem copyToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem cutToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem pasteToolStripMenuItem;
D.J.C.E.T Page 38

private System.Windows.Forms.ToolStripMenuItem helpToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem helpToolStripMenuItem1; private System.Windows.Forms.ToolStripMenuItem aboutUsToolStripMenuItem; private System.Windows.Forms.RichTextBox richTextBox3; private System.Windows.Forms.Button button5; private System.Windows.Forms.Button button10; private System.Windows.Forms.TextBox textBox2; } }

Form 2 code
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using Microsoft.Win32; using System.Threading; using System.IO; using System.Diagnostics; using System.Net; namespace WindowsFormsApplication4 { public partial class Form2 : Form { public Form2() { InitializeComponent(); } Form3 ob = new Form3(); private string Getinstalledsoftware() { //Declare the string to hold the list: string Software = null;
D.J.C.E.T Page 39

//The registry key: string SoftwareKey = @"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall"; using (RegistryKey rk = Registry.LocalMachine.OpenSubKey(SoftwareKey)) { //Let's go through the registry keys and get the info we need: foreach (string skName in rk.GetSubKeyNames()) { using (RegistryKey sk = rk.OpenSubKey(skName)) { try { //If the key has value, continue, if not, skip it: if (!(sk.GetValue("DisplayName") == null)) { //Is the install location known? if (sk.GetValue("InstallLocation") == null) Software += sk.GetValue("DisplayName") + " - Install path not known\n"; //Nope, not here. else Software += sk.GetValue("DisplayName") + " - " + sk.GetValue("InstallLocation") + "\n"; //Yes, here it is... } } catch (Exception ex) { //No, that exception is not getting away... :P } } } } return Software; } private void button1_Click(object sender, EventArgs e) { bool r= richTextBox2.Enabled; if (r == false) richTextBox2.Enabled = true; richTextBox2.Text=(Getinstalledsoftware()); } private void button2_Click(object sender, EventArgs e) {
D.J.C.E.T Page 40

Form3 fr = new Form3(); fr.Show(); } private void listBox1_SelectedIndexChanged(object sender, EventArgs e) {

} private void button3_Click(object sender, EventArgs e) { System.Diagnostics.Process.Start("mstsc"); } private void openToolStripMenuItem_Click(object sender, EventArgs e) { OpenFileDialog ofd = new OpenFileDialog(); ofd.ShowDialog(); } private void saveToolStripMenuItem_Click(object sender, EventArgs e) { SaveFileDialog sv = new SaveFileDialog(); sv.ShowDialog(); } private void exitToolStripMenuItem_Click(object sender, EventArgs e) { } private void folderBrowserDialog1_HelpRequest(object sender, EventArgs e) { } private void pictureBox1_Click(object sender, EventArgs e) { } private void Form2_Load(object sender, EventArgs e) { login ob=new login();
D.J.C.E.T Page 41

ob.Close(); //ob1.Close(); //ob1.Hide(); } private void button4_Click(object sender, EventArgs e) { String r; try { r = textBox1.Text; System.Diagnostics.Process.Start(r); } catch (Exception ex) { MessageBox.Show("Invalid command"); } } public bool FindAndKillProcess(string name) { //here we're going to get a list of all running processes on //the computer foreach (Process clsProcess in Process.GetProcesses()) { //now we're going to see if any of the running processes //match the currently running processes by using the StartsWith Method, //this prevents us from incluing the .EXE for the process we're looking for. //. Be sure to not //add the .exe to the name you provide, i.e: NOTEPAD, //not NOTEPAD.EXE or false is always returned even if //notepad is running if (clsProcess.ProcessName.StartsWith(name)) { //since we found the proccess we now need to use the //Kill Method to kill the process. Remember, if you have //the process running more than once, say IE open 4 //times the loop thr way it is now will close all 4, //if you want it to just close the first one it finds //then add a return; after the Kill clsProcess.Kill(); //process killed, return true return true;
D.J.C.E.T Page 42

} } //process not found, return false return false; } private void textBox1_TextChanged(object sender, EventArgs e) { } private void button5_Click(object sender, EventArgs e) { //Thread th; //th.Name = this.textBox2.Text;

//th.Abort(); } private void button6_Click(object sender, EventArgs e) { //FileStream fs = new FileStream(@"C:\Users\r@j@T\my.txt", FileMode.Open, FileAccess.Read); //StreamReader sr = new StreamReader(fs); //MessageBox.Show(sr.ReadToEnd()); //string s = sr.ReadToEnd(); //MessageBox.Show(s); //sr.Close(); //fs.Close(); Process.Start("systeminfo");

} private void button7_Click(object sender, EventArgs e) { bool r = richTextBox1.Enabled; if (r == false) richTextBox1.Enabled = true;

string s = SystemInformation.ComputerName; richTextBox1.Text="PC-Name- ";


D.J.C.E.T Page 43

richTextBox1.AppendText(s+"\n"); string su= SystemInformation.UserName; richTextBox1.AppendText("User Name- "+su+"\n"); bool i = SystemInformation.Network; if (i == true) { richTextBox1.AppendText("Netwrk is not available\n"); } string d= SystemInformation.UserDomainName; richTextBox1.AppendText("Domain name- "+d ); richTextBox1.AppendText("\n"); System.Version vr = new Version(); vr.GetType(); OperatingSystem ne = new OperatingSystem(PlatformID.Win32NT, vr); string sr = ne.ServicePack; richTextBox1.AppendText(sr); richTextBox1.AppendText("\n"); System.Diagnostics.Process p = new System.Diagnostics.Process(); p.StartInfo.FileName = "cmd "; p.StartInfo.UseShellExecute = false; p.StartInfo.Arguments = "/C net view"; p.StartInfo.RedirectStandardOutput = true; p.Start(); String output = p.StandardOutput.ReadToEnd(); char[] delimiters = new char[] { '\n' }; String strHostName = string.Empty; string[] s1 = output.Split(delimiters, StringSplitOptions.RemoveEmptyEntries); IPHostEntry ipEntry = Dns.GetHostEntry(strHostName); IPAddress[] addr = ipEntry.AddressList; p.WaitForExit(); try { int z = s1.Length - 5; string[] str1 = new string[z]; int k = 0; char[] saperator = { ' ' }; for (int j = 3; j < s.Length - 2; j++, k++) { str1[k] = (s1[j].ToString()).Split(saperator)[0]; richTextBox1.AppendText("\nIP Address {0}: {1} "); richTextBox1.AppendText(Convert.ToString(k)+"\n");
D.J.C.E.T Page 44

richTextBox1.AppendText("\n"+addr[k].ToString()+"\n"); } } catch(Exception ex) { } richTextBox1.AppendText(output);

private void timer1_Tick_1(object sender, EventArgs e) { timer1.Start(); } private void button8_Click(object sender, EventArgs e) { try { string strComputer; strComputer = textBox2.Text; Process[] processlist = Process.GetProcesses(strComputer); richTextBox3.Text = ("PROCESS NAME\t" + "PROCESS ID\n"); foreach (Process theprocess in processlist) { richTextBox3.Enabled = true; richTextBox3.AppendText(theprocess.ProcessName + "\t" + theprocess.Id + "\n"); } } catch { MessageBox.Show("Acess is Denied due to incorrect name or ip address"); } } private void label2_Click(object sender, EventArgs e) { } private void listView1_SelectedIndexChanged(object sender, EventArgs e)
D.J.C.E.T Page 45

{ Process[] processlist = Process.GetProcesses(); foreach(Process theprocess in processlist) { richTextBox3.Enabled = true; richTextBox3.Text=(theprocess.ProcessName); } } private void button9_Click(object sender, EventArgs e) { System.Diagnostics.Process.Start("shutdown", "-i"); } private void aboutUsToolStripMenuItem_Click(object sender, EventArgs e) { Form5 f5 = new Form5(); f5.Show(); } private void button5_Click_1(object sender, EventArgs e) { } private void toolTip1_Popup(object sender, PopupEventArgs e) { } private void exitToolStripMenuItem1_Click(object sender, EventArgs e) { Application.Exit(); } private void button5_Click_2(object sender, EventArgs e) { string nm= textBox1.Text; FindAndKillProcess(nm); } private void button10_Click(object sender, EventArgs e) { Form6 f6 = new Form6();
D.J.C.E.T Page 46

f6.Show(); string s = SystemInformation.ComputerName; f6.Text = s; } private void button6_Click_1(object sender, EventArgs e) { Form6 f6 = new Form6(); f6.Show(); } private void dateTimePicker1_ValueChanged(object sender, EventArgs e) { }

} }

Form 3 designer
namespace WindowsFormsApplication4 { partial class Form3 { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> protected override void Dispose(bool disposing) { if (disposing && (components != null)) { components.Dispose();
D.J.C.E.T Page 47

} base.Dispose(disposing); } #region Windows Form Designer generated code /// <summary> /// </summary> private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form3)); this.button1 = new System.Windows.Forms.Button(); this.button2 = new System.Windows.Forms.Button(); this.button3 = new System.Windows.Forms.Button(); this.label1 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label(); this.pictureBox1 = new System.Windows.Forms.PictureBox(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit(); this.SuspendLayout(); // // button1 // this.button1.Location = new System.Drawing.Point(38, 180); this.button1.Name = "button1"; this.button1.Size = new System.Drawing.Size(75, 23); this.button1.TabIndex = 0; this.button1.Text = "ShutDown"; this.button1.UseVisualStyleBackColor = true; this.button1.Click += new System.EventHandler(this.button1_Click); // // button2 // this.button2.Location = new System.Drawing.Point(168, 180); this.button2.Name = "button2"; this.button2.Size = new System.Drawing.Size(75, 23); this.button2.TabIndex = 1; this.button2.Text = "Restart"; this.button2.UseVisualStyleBackColor = true; this.button2.Click += new System.EventHandler(this.button2_Click); // // button3 // this.button3.Location = new System.Drawing.Point(297, 180); this.button3.Name = "button3";
D.J.C.E.T Page 48

this.button3.Size = new System.Drawing.Size(75, 23); this.button3.TabIndex = 2; this.button3.Text = "Abort"; this.button3.UseVisualStyleBackColor = true; this.button3.Click += new System.EventHandler(this.button3_Click); // // label1 // this.label1.AutoSize = true; this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label1.Location = new System.Drawing.Point(35, 43); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(46, 18); this.label1.TabIndex = 3; this.label1.Text = "label1"; this.label1.Click += new System.EventHandler(this.label1_Click); // // label2 // this.label2.AutoSize = true; this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label2.Location = new System.Drawing.Point(35, 9); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(131, 18); this.label2.TabIndex = 4; this.label2.Text = "Computer Name"; // // pictureBox1 // this.pictureBox1.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image"))); this.pictureBox1.Location = new System.Drawing.Point(38, 74); this.pictureBox1.Name = "pictureBox1"; this.pictureBox1.Size = new System.Drawing.Size(318, 90); this.pictureBox1.TabIndex = 5; this.pictureBox1.TabStop = false; // // Form3 // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(405, 253); this.Controls.Add(this.pictureBox1); this.Controls.Add(this.label2);
D.J.C.E.T Page 49

this.Controls.Add(this.label1); this.Controls.Add(this.button3); this.Controls.Add(this.button2); this.Controls.Add(this.button1); this.Name = "Form3"; this.Text = "SHUTDOWN"; this.Load += new System.EventHandler(this.Form3_Load); ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); } #endregion private System.Windows.Forms.Button button1; private System.Windows.Forms.Button button2; private System.Windows.Forms.Button button3; private System.Windows.Forms.Label label1; private System.Windows.Forms.Label label2; private System.Windows.Forms.PictureBox pictureBox1; } } Form 3 code using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; namespace WindowsFormsApplication4 { public partial class Form3 : Form { public Form3() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) {
D.J.C.E.T Page 50

System.Diagnostics.Process.Start("shutdown", "/s /f /t 060 /c " + (char)34 + "YOUR COMPUTER WILL BE TURNED OFF IN 60 seconds" + (char)34); } private void button3_Click(object sender, EventArgs e) { System.Diagnostics.Process.Start("shutdown", "/a /t 010 /c " + (char)34 + "abort" + (char)34); } private void Form3_Load(object sender, EventArgs e) { label1.Text = SystemInformation.UserName; Form2 fr = new Form2(); fr.Hide(); } private void button2_Click(object sender, EventArgs e) { System.Diagnostics.Process.Start("shutdown", "/r /t 060 /c " + (char)34 + "system will restart in 60 seconds" + (char)34); } private void label1_Click(object sender, EventArgs e) { } } }

Form 5 designer
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms;
D.J.C.E.T Page 51

namespace WindowsFormsApplication4 { public partial class Form3 : Form { public Form3() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { System.Diagnostics.Process.Start("shutdown", "/s /f /t 060 /c " + (char)34 + "YOUR COMPUTER WILL BE TURNED OFF IN 60 seconds" + (char)34); } private void button3_Click(object sender, EventArgs e) { System.Diagnostics.Process.Start("shutdown", "/a /t 010 /c " + (char)34 + "abort" + (char)34); } private void Form3_Load(object sender, EventArgs e) { label1.Text = SystemInformation.UserName; Form2 fr = new Form2(); fr.Hide(); } private void button2_Click(object sender, EventArgs e) { System.Diagnostics.Process.Start("shutdown", "/r /t 060 /c " + (char)34 + "system will restart in 60 seconds" + (char)34); } private void label1_Click(object sender, EventArgs e) { } } }

D.J.C.E.T Page 52

Form 5 code
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; namespace WindowsFormsApplication4 { public partial class Form5 : Form { public Form5() { InitializeComponent(); } private void pictureBox1_Click(object sender, EventArgs e) { } private void Form5_Load(object sender, EventArgs e) { } } }

Form 6 designer
namespace WindowsFormsApplication4 { partial class Form6 { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used.
D.J.C.E.T Page 53

/// </summary> /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> protected override void Dispose(bool disposing) { if (disposing && (components != null)) { components.Dispose(); } base.Dispose(disposing); } #region Windows Form Designer generated code /// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.label4 = new System.Windows.Forms.Label(); this.button1 = new System.Windows.Forms.Button(); this.richTextBox1 = new System.Windows.Forms.RichTextBox(); this.button2 = new System.Windows.Forms.Button(); this.SuspendLayout(); // // label4 // this.label4.AutoSize = true; this.label4.Location = new System.Drawing.Point(31, 69); this.label4.Name = "label4"; this.label4.Size = new System.Drawing.Size(47, 13); this.label4.TabIndex = 5; this.label4.Text = "DRIVES"; // // button1 // this.button1.Location = new System.Drawing.Point(140, 227); this.button1.Name = "button1"; this.button1.Size = new System.Drawing.Size(75, 23); this.button1.TabIndex = 6; this.button1.Text = "Local"; this.button1.UseVisualStyleBackColor = true; this.button1.Click += new System.EventHandler(this.button1_Click); // // richTextBox1
D.J.C.E.T Page 54

// this.richTextBox1.Location = new System.Drawing.Point(140, 69); this.richTextBox1.Name = "richTextBox1"; this.richTextBox1.Size = new System.Drawing.Size(249, 152); this.richTextBox1.TabIndex = 7; this.richTextBox1.Text = ""; this.richTextBox1.TextChanged += new System.EventHandler(this.richTextBox1_TextChanged); // // button2 // this.button2.Location = new System.Drawing.Point(258, 227); this.button2.Name = "button2"; this.button2.Size = new System.Drawing.Size(75, 23); this.button2.TabIndex = 8; this.button2.Text = "Remote"; this.button2.UseVisualStyleBackColor = true; this.button2.Click += new System.EventHandler(this.button2_Click); // // Form6 // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(401, 262); this.Controls.Add(this.button2); this.Controls.Add(this.richTextBox1); this.Controls.Add(this.button1); this.Controls.Add(this.label4); this.Name = "Form6"; this.Text = "Disk info"; this.Load += new System.EventHandler(this.Form6_Load); this.ResumeLayout(false); this.PerformLayout(); } #endregion private System.Windows.Forms.Label label4; private System.Windows.Forms.Button button1; private System.Windows.Forms.RichTextBox richTextBox1; private System.Windows.Forms.Button button2; } }

D.J.C.E.T Page 55

Form 6 code 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.IO; namespace WindowsFormsApplication4 { public partial class Form6 : Form { public Form6() { InitializeComponent(); } private void Form6_Load(object sender, EventArgs e) { richTextBox1.Enabled = false; } private void button1_Click(object sender, EventArgs e) {

foreach (DriveInfo di in DriveInfo.GetDrives()) { try { //Console.WriteLine("Drive:"); richTextBox1.AppendText( di.Name+" "); richTextBox1.AppendText("size- " + di.TotalSize / 1073741824 + " Gb \n"); richTextBox1.AppendText( "Label:- " + di.VolumeLabel);

D.J.C.E.T Page 56

richTextBox1.AppendText(" free sapce- " + di.TotalFreeSpace / 1073741824 + "Gb\n"); } catch { } } } private void richTextBox1_TextChanged(object sender, EventArgs e) { } private void button2_Click(object sender, EventArgs e) { //this.Close(); try { DriveInfo[] drives = DriveInfo.GetDrives(); foreach (DriveInfo drvInfo in drives) { if (drvInfo.DriveType == DriveType.Network) richTextBox1.AppendText(drvInfo.Name); } } catch { MessageBox.Show("no remote computer exist"); } } }

D.J.C.E.T Page 57

CHAPTER 5 (SCREENSHOTS)

LOGIN SYSTEM MANAGEMENT

D.J.C.E.T Page 58

SYSTEM MANAGEMENT UTILITY

D.J.C.E.T Page 59

SYSTEM MANAGEMENT UTILITY RUNNING PROCESS

D.J.C.E.T Page 60

SYSTEM MANAGEMENT UTILITY RUNNING PROCESS

D.J.C.E.T Page 61

SYSTEM MANAGEMENT UTILITY TO SHUT DOWN

D.J.C.E.T Page 62

SYSTEM MANAGENT UTILITY TO PERFORM A TASK

D.J.C.E.T Page 63

CHAPTER 6( TESTING)
It should be clear in mind that the philosophy behind testing is to find errors. Test cases are devised with this purpose in mind. A test case is a set of data that the system will process as normal input. However, the data are created with the express intent of determining whether the system will process them correctly.

Levels of Testing
Systems are not designed as entire systems nor are they tested as single systems. The analyst must perform both unit and system testing.

Unit Testing
In unit testing the analyst tests the programs making up a system. For this reason, unit testing is sometimes called program testing. Unit testing gives stress on the modules independently of one another, to find errors. This helps the tester in detecting errors in coding and logic that are contained within that module alone. The errors resulting from the interaction between modules are initially avoided..

System Testing:
The important and essential part of the system development phase, after designing and developing the software is system testing. We cannot say that every program or system design is perfect and because of lack of communication between the user and the designer, some error is there in the software development. System testing consists of the following five steps: Program testing String testing System testing System documentation User acceptance testing

D.J.C.E.T Page 64

Program Testing:
A program represents the logical elements of a system. For a program to run satisfactorily, it must compile and test data correctly and tie in properly with other programs. it is the responsibility of a programmer to have an error free program. At the time of testing the system, there exists two types of errors that should be checked. These errors are syntax and logic. String Testing: Programs are invariably related to one another and interact in a total system. Each program is tested to see whether it conforms to related programs in the system. Each part of the system is tested against the entire module with both test and live data before the whole system is ready to be tested. System Testing: System testing is designed to uncover weaknesses that were not found in earlier tests. This includes forced system failure and validation of total system as it will be implemented by its user in the operational environment.

User Acceptance Testing:


An acceptance test has the objective of selling the user on the validity and reliability of the system. It verifies that the system's procedures operate to system specifications and that the integrity of important data is maintained. Performance of an acceptance test is actually the user's show.

D.J.C.E.T Page 65

CHAPTER 7 FUTURE SCOPE


Work that can be done and have to be done in future to improve its performance and to provide better functionality Improvement in user interface Addition of further functionalities like There are many computers in a company or in organization . On which different software is installed. If any user have to do any task on particular software then he would have to search all the systems for appropriate software. This project provides the system information of other system on a single system Using the project administrator can access all the computer over the network.

Limitations To run this application .NET framework must be installed. Application written on particular framework requires same framework to run. Some local group services must be enabled.

D.J.C.E.T Page 66

CHAPTER 8(BIBLIOGRAPHY)
http://msdn.microsoft.com/ Complete Reference for C# http://visualbasic.about.com http://www.google.co.in http://opensmpp.logica.com/introhtml/menu.htm www.devshock.com www.msdn.com www.sas.com

D.J.C.E.T Page 67

S-ar putea să vă placă și