1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Hibernation and standby

Discussion in 'Visual Basic ( VB )' started by adityavit, Nov 25, 2007.

  1. adityavit

    adityavit New Member

    Joined:
    Nov 25, 2007
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    hello,
    can anyone suggest me a method or technique in visual basic with which we can hibernate the system or put the system on stand by.
    thanx.
     
  2. SaswatPadhi

    SaswatPadhi ~ Б0ЯИ Τ0 С0δЭ ~

    Joined:
    May 5, 2009
    Messages:
    1,343
    Likes Received:
    55
    Trophy Points:
    0
    Occupation:
    STUDENT !
    Location:
    Orissa, INDIA
    Home Page:
    [[ Very late reply, but this might help others :smile: ]]
    You can use Shell :wink:

    (1) To Standby :
    Code:
    Shell("%windir%\System32\rundll32.exe powrprof.dll,SetSuspendState")
    (2) To Hibernate :
    Code:
    Shell("%windir%\System32\rundll32.exe powrprof.dll,SetSuspendState Hibernate")
     
    shabbir likes this.

Share This Page