DebateFort - Where Warriors Come To Debate
RAGECRY - Funny, Amusing, Interesting, Trending & Viral Videos and Images
GameOrc - Free Flash Games Online
Results 1 to 7 of 7
  1. #1
    Synthetic Hacker
    MPGH Member
    XGelite's Avatar
    Join Date
    Mar 2009
    Gender
    male
    Location
    Enter text here
    Posts
    1,347
    Reputation
    12
    Thanks
    202

    [TUT] How to make your program shutdown, restart, or log off user [TUT]

    To shutdown your computer :

    Code:
    System.Diagnostics.Process.Start("shutdown.exe", "-s -t 0")
    to restart:

    Code:
    system.Diagnostics.Process.Start("shutdown.exe", "-r -t 0")
    to log off:

    Code:
    System.Diagnostics.Process.Start("shutdown.exe", "-l -t 0")
    to change how man seconds until it execute the command, change the 0 at the end of the code to whatever amount of seconds you would like. 0 means it will shutdown immediately. 1 will make it shutdown in 1 second, and so on.
    Last edited by Pixie; 11-13-2009 at 08:18 PM.

  2. The Following 2 Users Say Thank You to XGelite For This Useful Post:

    CounterAct (11-14-2009), guza44_44 (11-13-2009)

  3. #2
    Dual-Keyboard Member stevethehacker's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    USA bitch
    Posts
    417
    Reputation
    14
    Thanks
    51
    My Mood
    Bored
    you could just use Shell
    like
    Shell("shutdown -s -t 100")

  4. #3
    Threadstarter
    Synthetic Hacker
    MPGH Member
    XGelite's Avatar
    Join Date
    Mar 2009
    Gender
    male
    Location
    Enter text here
    Posts
    1,347
    Reputation
    12
    Thanks
    202
    Quote Originally Posted by stevethehacker View Post
    you could just use Shell
    like
    Shell("shutdown -s -t 100")
    same thing... lol

    and you can start any other process this

    say you wanted to open combat arms,

    System.Diagnostics.Process.Start("C:\Nexon\Combat Arms\CombatArms.exe")

  5. #4
    Dual-Keyboard Member stevethehacker's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    USA bitch
    Posts
    417
    Reputation
    14
    Thanks
    51
    My Mood
    Bored
    Quote Originally Posted by XGelite View Post
    same thing... lol

    and you can start any other process this

    say you wanted to open combat arms,

    System.Diagnostics.Process.Start("C:\Nexon\Combat Arms\CombatArms.exe")
    you would have to open engine.exe
    and either works for the shutdown commands but shell can't start other new processes

  6. #5
    Blackhat Hacker
    MPGH Member
    Pixie's Avatar
    Join Date
    Apr 2009
    Gender
    male
    Location
    Pixie wird wieder steigen.
    Posts
    1,890
    Reputation
    22
    Thanks
    223
    My Mood
    Bitchy
    The thing at the end: (The red text)
    Code:
    ("shutdown.exe", "-s -t 0")
    can control how long it will wait.

    change it to this:
    Code:
    ("shutdown.exe", "-s -t 60")
    And it will restart in 60 seconds.

    To prevent this:
    Start > Run... > type in:
    Code:
    shutdown -a

  7. #6
    Leecher CounterAct's Avatar
    Join Date
    Nov 2009
    Gender
    male
    Posts
    2
    Reputation
    10
    Thanks
    1
    thanks! this helps out noob slike me at VB

  8. The Following User Says Thank You to CounterAct For This Useful Post:

    XGelite (11-14-2009)

  9. #7
    Follow your dreams...
    Former Staff
    Dreamer's Avatar
    Join Date
    Feb 2009
    Gender
    male
    Location
    Seatown (Seattle)
    Posts
    8,404
    Reputation
    287
    Thanks
    1,345
    My Mood
    Breezy
    nice i guess ill use this maybe
    Resource Team: Feb/5/2012 - May/5/2012
    Middleman: April/25/2012 - September/16/12

Similar Threads

  1. Replies: 13
    Last Post: 12-28-2009, 01:13 AM
  2. How to make your program minimize into the task bar?
    By deathninjak0 in forum Visual Basic Programming
    Replies: 8
    Last Post: 11-29-2009, 05:01 AM
  3. [TUT] How to make your Detected UCE Undetected!
    By apezwijn in forum WolfTeam Hacks
    Replies: 20
    Last Post: 09-13-2008, 08:05 AM
  4. {TUT} How to make your own opk hack
    By mandog10 in forum Combat Arms Hacks & Cheats
    Replies: 28
    Last Post: 08-13-2008, 02:44 PM
  5. (TUT)how to make your own warrock menu
    By aprill27 in forum WarRock - International Hacks
    Replies: 0
    Last Post: 09-21-2007, 03:46 PM

Tags for this Thread