1. We have moved from vBulletin to XenForo and you are viewing the site in the middle of the move. Though the functional aspect of everything is working fine, we are still working on other changes including the new design on Xenforo.
    Dismiss Notice

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