Results 1 to 9 of 9

Thread: Hard Drive Sleep ???!!

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 1999
    Posts
    7

    Post

    I Need to have a code to get the hard drive sleep.

  2. #2
    Lively Member
    Join Date
    Oct 1999
    Posts
    101

    Post

    This code will put your program to sleep for 3 seconds.

    Code:

    Option Explicit

    Private Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)

    Private Sub Form_Load()
    Sleep 3000
    End Sub


    To adjust the amount of sleeping time, just change the 3000 to whatever you want (# of seconds to sleep * 1000).

    All the best.

    Chris

    ------------------
    CJ

  3. #3
    Guru Clunietp's Avatar
    Join Date
    Oct 1999
    Location
    USA
    Posts
    1,844

    Post

    Does anyone have API code to initiate the power down mode for the HDD (like the power management in Win9x)?

    Thanks

    Tom

  4. #4

    Thread Starter
    New Member
    Join Date
    Nov 1999
    Posts
    7

    Post

    Does anyone have code to initiate the power down mode for the HDD (like the power management in Win9x)?

    I wounder to?

  5. #5
    Junior Member
    Join Date
    Feb 1999
    Posts
    24

    Post

    now why would you possibly want to know how to this... i can only see evil things.

  6. #6

    Thread Starter
    New Member
    Join Date
    Nov 1999
    Posts
    7

    Post

    I am going to make a screensaver like program.

  7. #7
    Addicted Member
    Join Date
    Aug 2002
    Location
    Alberta, Canada
    Posts
    138

    Re: Hard Drive Sleep ???!!

    now why would you possibly want to know how to this... i can only see evil things.
    that could just be a case of near sightedness on your part

    Im building a PVR with multiple disks, the OS is on a 10Gb flash drive, and there are also 3 1Tb disks for data. I am looking for a way to spin down the hard drives that are not in use. Why have disks 2 and 3 running if your only accessing a movie on disk 1?

    Wouldnt spinning down / putting to sleep the disks that are not being used reduce noise...heat....and increase the lifespan of the disks?

    Is this even possible?
    Jon_G
    AKA Phil From Marketing
    **************************************
    Insert Something Memorable And Witty Here.
    **************************************

  8. #8
    Fanatic Member
    Join Date
    Jun 2008
    Posts
    1,023

    Re: Hard Drive Sleep ???!!

    lol he could do this to cut the power of the computer? maybe play "nice" with people ("nice") lol

  9. #9
    PoorPoster iPrank's Avatar
    Join Date
    Oct 2005
    Location
    In a black hole
    Posts
    2,729

    Re: Hard Drive Sleep ???!!

    Jon G, you are almost 9 years late.
    Usefull VBF Threads/Posts I Found . My flickr page .
    "I love being married. It's so great to find that one special person you want to annoy for the rest of your life." - Rita Rudner


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width