1) Start>>Run and type cmd and press Enter.
2) type shutdown /i
3) add the computers on your network ,set the display timing and enter the shutdown
Usage: shutdown [-i -l -s -r -a] [-f] [-m \\computername] [-t xx] [-c "comment"] [-d up:xx:yy]
No args => Display this message (same as -?)
-i => Display GUI interface, must be the first option
-l => Log off (cannot be used with -m option)
-s => Shutdown the computer
-r => Shutdown and restart the computer
-a => Abort a system shutdown
-m \\computername => Remote computer to shutdown/restart/abort
-t xx => Set timeout for shutdown to xx seconds
-c "comment" => Shutdown comment (maximum of 127 characters)
-f => Forces running applications to close without warning
-d [u][p]:xx:yy => The reason code for the shutdown
u is the user code
p is a planned shutdown code
xx is the major reason code (positive integer less than 256)
yy is the minor reason code (positive integer less than 65536)
For more see the link for win2000 http://support.microsoft.com/kb/317371
Showing posts with label Basics. Show all posts
Showing posts with label Basics. Show all posts
Wednesday, August 19, 2009
Friday, August 14, 2009
About Visual Studio Product
Visual Studio is a tool provided by the Microsoft to develop .NET or(Microsoft based) application. Using this tool will easy for us to create, maintain, debug and to deploy a project like Web applications, XML Web Services, and traditional client applications. The single tool include all the Microsoft technologies like ASP.NET, Silverlight, AJAX, Windows application, etc for the developers.
For more information in detail refer this link http://msdn.microsoft.com/en-us/library/aa187919.aspx
Visual Studio Editions
1) Express Edition
2) Standard Edition
3) Professional Edition
4) Visual Studio Tools For office
The above different kinds of product are classified based on the features. To more in detail about the feature that are available on each product check this link http://msdn.microsoft.com/en-us/library/zcbsd3cz%28VS.80%29.aspx (This is for VS2005)
To see different kinds of product available in VS2008 use the below link
http://www.microsoft.com/visualstudio/en-us/products/default.mspx
The below mentioned product are free for download and install it. The below product we call it as express edition.
In the express editions different kinds of product are available
1) Visual Basic 2008 Express with SP1
2) Visual C# 2008 Express with SP1
3) Visual C++ 2008 Express with SP1
4) Visual Web Developer 2008 Express with SP1
The above four application are for developing windows application and one specially for developing games
The another Express edition for developers is SQL Server 2008 Express
To know more about the Express Edition Products check the below links http://www.microsoft.com/express/product/ .In the same link the downloads are also available.
For developers the msdn Site is : http://msdn.microsoft.com/en-us/vstudio/default.aspx . This site keep you up-to-date with current information’s
Before going to install the Visual studio refer this link first http://msdn.microsoft.com/en-us/library/e2h7fzkw.aspx
Comments are invited about this post :)
For more information in detail refer this link http://msdn.microsoft.com/en-us/library/aa187919.aspx
Visual Studio Editions
1) Express Edition
2) Standard Edition
3) Professional Edition
4) Visual Studio Tools For office
The above different kinds of product are classified based on the features. To more in detail about the feature that are available on each product check this link http://msdn.microsoft.com/en-us/library/zcbsd3cz%28VS.80%29.aspx (This is for VS2005)
To see different kinds of product available in VS2008 use the below link
http://www.microsoft.com/visualstudio/en-us/products/default.mspx
The below mentioned product are free for download and install it. The below product we call it as express edition.
In the express editions different kinds of product are available
1) Visual Basic 2008 Express with SP1
2) Visual C# 2008 Express with SP1
3) Visual C++ 2008 Express with SP1
4) Visual Web Developer 2008 Express with SP1
The above four application are for developing windows application and one specially for developing games
The another Express edition for developers is SQL Server 2008 Express
To know more about the Express Edition Products check the below links http://www.microsoft.com/express/product/ .In the same link the downloads are also available.
For developers the msdn Site is : http://msdn.microsoft.com/en-us/vstudio/default.aspx . This site keep you up-to-date with current information’s
Before going to install the Visual studio refer this link first http://msdn.microsoft.com/en-us/library/e2h7fzkw.aspx
Comments are invited about this post :)
Thursday, August 6, 2009
Automating Applications Using the Office Object Model
The below links are referring to the Office object model, managing the office product programmatically. Automation is the key technology that makes creating an integrated Microsoft Office solution possible. The key to understanding automation is to understand objects, object models, and interop assemblies: what they are, how they work, and how they work together.
Word Tasks
This section provides examples of commonly performed tasks that make use of the Microsoft Office Word 2003 object model in Microsoft Visual Studio 2005 Tools for the Microsoft Office System.
http://msdn.microsoft.com/en-us/library/78whx7s6(VS.80).aspx
Excel Tasks
This section provides examples of commonly performed tasks that make use of the Microsoft Office Excel 2003 object model in Microsoft Visual Studio 2005 Tools for the Microsoft Office System.
http://msdn.microsoft.com/en-us/library/syyd7czh(VS.80).aspx
Outlook Tasks
This section provides examples of commonly performed tasks that make use of the Microsoft Office Outlook object model in Microsoft Visual Studio 2005 Tools for the Microsoft Office System.
http://msdn.microsoft.com/en-us/library/ms268731(VS.80).aspx
Word Tasks
This section provides examples of commonly performed tasks that make use of the Microsoft Office Word 2003 object model in Microsoft Visual Studio 2005 Tools for the Microsoft Office System.
http://msdn.microsoft.com/en-us/library/78whx7s6(VS.80).aspx
Excel Tasks
This section provides examples of commonly performed tasks that make use of the Microsoft Office Excel 2003 object model in Microsoft Visual Studio 2005 Tools for the Microsoft Office System.
http://msdn.microsoft.com/en-us/library/syyd7czh(VS.80).aspx
Outlook Tasks
This section provides examples of commonly performed tasks that make use of the Microsoft Office Outlook object model in Microsoft Visual Studio 2005 Tools for the Microsoft Office System.
http://msdn.microsoft.com/en-us/library/ms268731(VS.80).aspx
Friday, July 31, 2009
Excel 2007 videos
New Feature in Excel 2007
http://www.youtube.com/watch?v=wQyGS3icS9M
Whats new in Excel 2007
http://www.youtube.com/watch?v=OPaY5g-jiQQ&feature=related
Tracing Formulas in Excel 2007
http://www.youtube.com/watch?v=BllbwfsK7Yw
Excel 2007 Pie Chart
http://www.youtube.com/watch?v=pzSBKrV8C4c
Column-Line 2-Axis Chart in Excel 2007
http://www.youtube.com/watch?v=qrp65AyCzuU
Building a Pivot Table in Excel 2007
http://www.youtube.com/watch?v=7zHLnUCtfUk
Excel 2007 - Removing blank rows
http://www.youtube.com/watch?v=ER0pZQsqyOM
NEW TABLE FEATURE: Dynamic Range
http://www.blogger.com/post-create.g?blogID=6833741015620783493
Excel 2007 Table and Chart feature
http://www.youtube.com/watch?v=206iDkaMAQA
Names & Excel 2007 Tables
http://www.youtube.com/watch?v=ANFC3laJ03Q
Monday, July 27, 2009
Backup the windows registry
To backup the registry and also to Restore the registry I specify the link below to KB from Microsoft. This article describes how to back up the registry in Windows XP or Windows Vista.
http://support.microsoft.com/kb/322756/
Windows registry information for advanced users
This article describes the registry. This article also includes information about how to back up the registry, how to edit the registry, and lists references for more information. (For Advance User)
http://support.microsoft.com/kb/256986/
http://support.microsoft.com/kb/322756/
Windows registry information for advanced users
This article describes the registry. This article also includes information about how to back up the registry, how to edit the registry, and lists references for more information. (For Advance User)
http://support.microsoft.com/kb/256986/
Friday, June 12, 2009
Code for shut down the Computer
private void button1_Click(object sender, System.EventArgs e)
{
System.Diagnostics.Process.Start("Shutdown", "-s");
}
-s = shutdown
-r = restart
-t = timed shutdown
-f = hung/busy application instantly without prompting you to end the application manually
And here comes the most awaited thing...
Remote shutdown, All you have do is append this argument along with the previously mentioned arguments (i.e., -s or -r, -f, -t ). You can either specify the computer name or IP address of the target machine that you wish to shutdown/restart.
{
System.Diagnostics.Process.Start("Shutdown", "-s");
}
-s = shutdown
-r = restart
-t = timed shutdown
-f = hung/busy application instantly without prompting you to end the application manually
And here comes the most awaited thing...
Remote shutdown, All you have do is append this argument along with the previously mentioned arguments (i.e., -s or -r, -f, -t ). You can either specify the computer name or IP address of the target machine that you wish to shutdown/restart.
Wednesday, June 3, 2009
EventViewer using C# Code
This code display the last error, warning and Information that register in the Event log of the local system.
Include the namespace
using System.Diagnostics;
Copy the below code into main method of the console program and while running program you have to enter the numerical value from 1 to 3. Base on the selection the last registered value is display from the EventLog Entry
you can check it under the control panel ==> Administrative Tools ==> EventViewer
String myEventType = null;
// Associate the instance of 'EventLog' with local System Log.
EventLog myEventLog = new EventLog("Application", ".");
Console.WriteLine("1:Error");
Console.WriteLine("2:Information");
Console.WriteLine("3:Warning");
Console.WriteLine("Select the Event Type");
int myOption = Convert.ToInt32(Console.ReadLine());
switch (myOption)
{
case 1: myEventType = "Error";
break;
case 2: myEventType = "Information";
break;
case 3: myEventType = "Warning";
break;
default: break;
}
EventLogEntryCollection myLogEntryCollection = myEventLog.Entries;
int myCount = myLogEntryCollection.Count;
// Iterate through all 'EventLogEntry' instances in 'EventLog'.
for (int i = myCount - 1; i > 0; i--)
{
EventLogEntry myLogEntry = myLogEntryCollection[i];
// Select the entry having desired EventType.
if (myLogEntry.EntryType.ToString().Equals(myEventType))
{
// Display Source of the event.
Console.WriteLine(myLogEntry.Source
+ " was the source of last event of type "
+ myLogEntry.EntryType);
Console.ReadLine();
return;
}
}
Enjoy :)
Include the namespace
using System.Diagnostics;
Copy the below code into main method of the console program and while running program you have to enter the numerical value from 1 to 3. Base on the selection the last registered value is display from the EventLog Entry
you can check it under the control panel ==> Administrative Tools ==> EventViewer
String myEventType = null;
// Associate the instance of 'EventLog' with local System Log.
EventLog myEventLog = new EventLog("Application", ".");
Console.WriteLine("1:Error");
Console.WriteLine("2:Information");
Console.WriteLine("3:Warning");
Console.WriteLine("Select the Event Type");
int myOption = Convert.ToInt32(Console.ReadLine());
switch (myOption)
{
case 1: myEventType = "Error";
break;
case 2: myEventType = "Information";
break;
case 3: myEventType = "Warning";
break;
default: break;
}
EventLogEntryCollection myLogEntryCollection = myEventLog.Entries;
int myCount = myLogEntryCollection.Count;
// Iterate through all 'EventLogEntry' instances in 'EventLog'.
for (int i = myCount - 1; i > 0; i--)
{
EventLogEntry myLogEntry = myLogEntryCollection[i];
// Select the entry having desired EventType.
if (myLogEntry.EntryType.ToString().Equals(myEventType))
{
// Display Source of the event.
Console.WriteLine(myLogEntry.Source
+ " was the source of last event of type "
+ myLogEntry.EntryType);
Console.ReadLine();
return;
}
}
Enjoy :)
Code for getting local Local Machine name and Ip address
The follow ing code to display the current machine name and the ip address of the current machine
This is the console program, copy the below code and put inside your main method and include the following namespace.
using System.Net;
string strHostName="";
strHostName = Dns.GetHostName();
Console.WriteLine("Local Machine's Host Name: " + strHostName);
Console.ReadLine();
IPHostEntry ientry = Dns.GetHostByName(strHostName);
IPAddress[] addr = ientry.AddressList;
for (int i = 0; i < addr.Length; i++)
{
Console.WriteLine("IP Address {0}: {1} ", i, addr[i].ToString());
}
Console.ReadLine();
Enjoy !!!
This is the console program, copy the below code and put inside your main method and include the following namespace.
using System.Net;
string strHostName="";
strHostName = Dns.GetHostName();
Console.WriteLine("Local Machine's Host Name: " + strHostName);
Console.ReadLine();
IPHostEntry ientry = Dns.GetHostByName(strHostName);
IPAddress[] addr = ientry.AddressList;
for (int i = 0; i < addr.Length; i++)
{
Console.WriteLine("IP Address {0}: {1} ", i, addr[i].ToString());
}
Console.ReadLine();
Enjoy !!!
Basic Concept of OOPS and .NET
The below links will refresh the basic concept in programming language
1) This is a set of lessons suited for beginning to intermediate programmers or anyone who would like to gain familiarity with the C# programming language. These lessons will help you get a quick head-start with C# programming.
http://www.csharp-station.com/Tutorial.aspx
2) Object-Oriented Programming Concepts and .NET
http://www.c-sharpcorner.com/UploadFile/ecabral/OOPSandDotNET106252005024236AM/OOPSandDotNET1.aspx
http://www.c-sharpcorner.com/UploadFile/eecabral/OOPSand.NET211102005075520AM/OOPSand.NET2.aspx
3) C# Coding Standards and Best Programming Practices
http://www.dotnetspider.com/tutorials/CodingStandards.doc
Enjoy
1) This is a set of lessons suited for beginning to intermediate programmers or anyone who would like to gain familiarity with the C# programming language. These lessons will help you get a quick head-start with C# programming.
http://www.csharp-station.com/Tutorial.aspx
2) Object-Oriented Programming Concepts and .NET
http://www.c-sharpcorner.com/UploadFile/ecabral/OOPSandDotNET106252005024236AM/OOPSandDotNET1.aspx
http://www.c-sharpcorner.com/UploadFile/eecabral/OOPSand.NET211102005075520AM/OOPSand.NET2.aspx
3) C# Coding Standards and Best Programming Practices
http://www.dotnetspider.com/tutorials/CodingStandards.doc
Enjoy
Subscribe to:
Posts (Atom)