What you want to see on DotNetFunda.com ?
DotNetFunda.Com Logo
Twitter TwitterLinkedIn
YouTubeGoogle
 Online : 36375 |  Welcome, Guest!   Register  Login
 Home > Code Snippets > VB.NET > Log Off your computer ...
Naimishforu

Log Off your computer

 Code Snippet posted by: Naimishforu | Posted on: 3/1/2011 | Category: VB.NET Codes | Views: 2573 | Status: [Member] [MVP] | Points: 40 | Alert Moderator   


 System.Diagnostics.Process.Start("shutdown", "-l -t 00")


Thanks,
Naimish
http://dotnetinterview.zxq.net/
http://naimishpandya.blogspot.in/
Found interesting? Add this to:


 Responses

CS1401
Posted by: CS1401 | Posted on: 7/21/2011 | Level: Starter | Status: [Member] | Points: 10 | Alert Moderator 

can you tell the exact meaning of this parameters..("shutdown", "-l -t 00")
Thank U

<cs1401>...</cs1401>

Naimishforu
Posted by: Naimishforu | Posted on: 7/21/2011 | Level: Bronze | Status: [Member] [MVP] | Points: 10 | Alert Moderator 

We call the shutdown procedure: ("shutdown",

After we called it we will have to name the process we want to do:

To make it shutdown we write after the comma "-s"
And to make it restart we write after the comma "-r"
And to make it logoff we write after the comma "-l"

Thanks,
Naimish
http://dotnetinterview.zxq.net/
http://naimishpandya.blogspot.in/

CS1401
Posted by: CS1401 | Posted on: 7/21/2011 | Level: Starter | Status: [Member] | Points: 10 | Alert Moderator 

THank U

<cs1401>...</cs1401>

Naimishforu
Posted by: Naimishforu | Posted on: 7/21/2011 | Level: Bronze | Status: [Member] [MVP] | Points: 10 | Alert Moderator 

No Problem :)

Thanks,
Naimish
http://dotnetinterview.zxq.net/
http://naimishpandya.blogspot.in/

>> Write Response - Respond to this post and get points

More codes snippets

About Us | Contact Us | The Team | Advertise | Software Development | Write for us | Testimonials | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
General Notice: If you find plagiarised (copied) contents on this page, please let us know the original source along with your correct email id (to communicate) for further action.
Copyright © DotNetFunda.Com. All Rights Reserved. Copying or mimicking the site design and layout is prohibited. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks. | 5/22/2013 7:07:44 PM