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

How to schedule to perform defragment and hibernation?

Discussion in 'Windows XP' started by Eric, Apr 30, 2010.

  1. Eric

    Eric Flightless Bird

    I would like to set schedule to perform defragment? after that, make XP with
    SP3 into hibernation automatically.
    Does anyone have any suggestions?
    Thanks in advance for any suggestions
    Eric
     
  2. VanguardLH

    VanguardLH Flightless Bird

    Eric wrote:

    > I would like to set schedule to perform defragment? after that, make XP with
    > SP3 into hibernation automatically.
    > Does anyone have any suggestions?


    In Task Scheduler, add an event to run:

    - Defrag

    Run: defrag.exe <d> -v

    This runs the included defrag tool in Windows. <d> is the drive letter of
    whatever drive you want to defrag. Only 1 drive can be specified at a time,
    so if you have multiple drives to defrag then you need multiple events: one
    event to handle the defrag of each drive. I would suggest having the
    defrags for different drives scheduled to run on a different day so they
    don't overlap. Of course, you could install a 3rd party defragger, like
    Auslogic's Defrag or Piriform's Defraggler, and read their manual on what
    command line to use in a scheduled task that you define.

    - Hibernate

    You already forgot about asking for this in your prior post a week ago in
    this same newsgroup? Do you even bother reading replies to your posts? You
    replied to the thread but you forgot about it already? Why should we waste
    time answering you again?

    Go look at the following article which gave you the commands you can put
    into a .bat file that you then run using a scheduled task:

    http://groups.google.com/group/micr...0c09e645bf1/4cfe8fcb188363df#4cfe8fcb188363df
    (short URL: http://tinyurl.com/29arl4n)

    Since you'll be using a .bat file to run the commands to hibernate, you
    could also put the defrag command for your drive(s) in the same batch file
    and just have one event to run the .bat file.
     
  3. Eric

    Eric Flightless Bird

    Thank you very muh for suggestions
    I would like to perform defragment, after that hibernate XP,
    I know how to hibernate XP individually from my past post on this forum,
    but I don't know how to activate hibernation, once the process of defragment
    is done,
    and it cannot be schedule, because the time required for defragment cannot
    be estimated.
    Do you have any suggestions on how to activate hibernation
    after the process of defragment is done?

    Another issue is that this forum is no longer support email alert, so it is
    very inconvenient to
    look for my past post. I may need to go back at least 10-15 pages for my
    post on a few day ago.
    Do you have any suggestions on how to easily look up my past posts?

    Thanks you very much for any suggestions
    Eric

    "VanguardLH" wrote:

    > Eric wrote:
    >
    > > I would like to set schedule to perform defragment? after that, make XP with
    > > SP3 into hibernation automatically.
    > > Does anyone have any suggestions?

    >
    > In Task Scheduler, add an event to run:
    >
    > - Defrag
    >
    > Run: defrag.exe <d> -v
    >
    > This runs the included defrag tool in Windows. <d> is the drive letter of
    > whatever drive you want to defrag. Only 1 drive can be specified at a time,
    > so if you have multiple drives to defrag then you need multiple events: one
    > event to handle the defrag of each drive. I would suggest having the
    > defrags for different drives scheduled to run on a different day so they
    > don't overlap. Of course, you could install a 3rd party defragger, like
    > Auslogic's Defrag or Piriform's Defraggler, and read their manual on what
    > command line to use in a scheduled task that you define.
    >
    > - Hibernate
    >
    > You already forgot about asking for this in your prior post a week ago in
    > this same newsgroup? Do you even bother reading replies to your posts? You
    > replied to the thread but you forgot about it already? Why should we waste
    > time answering you again?
    >
    > Go look at the following article which gave you the commands you can put
    > into a .bat file that you then run using a scheduled task:
    >
    > http://groups.google.com/group/micr...0c09e645bf1/4cfe8fcb188363df#4cfe8fcb188363df
    > (short URL: http://tinyurl.com/29arl4n)
    >
    > Since you'll be using a .bat file to run the commands to hibernate, you
    > could also put the defrag command for your drive(s) in the same batch file
    > and just have one event to run the .bat file.
    > .
    >
     
  4. HeyBub

    HeyBub Flightless Bird

    Eric wrote:



    >
    > Another issue is that this forum is no longer support email alert, so
    > it is very inconvenient to
    > look for my past post. I may need to go back at least 10-15 pages for
    > my post on a few day ago.
    > Do you have any suggestions on how to easily look up my past posts?


    This "forum" never did support email alerts. Inasmuch as you're using the
    horrid web interface, you'll have to live with its eccentricities,
    limitations, and blunders. I have no idea as to how to find a prior post in
    whatever web interface you're using.

    If, however, you were using a civilized news reader - Outlook Express,
    Thunderbird, Forte Agent, etc., you'd invoke the "Find" command.
     
  5. Eric

    Eric Flightless Bird

    I put following codes into batch file, but when I run it, defragment seems
    not to perform at all, XP go hibernation within a second.
    Do you have any suggestions on what wrong the code is?
    Thank you very much for any suggestions
    Eric

    C:/WINDOWS\system32\defrag.exe z: -v
    %windir%\System32\rundll32.exe powrprof.dll,SetSuspendState Hibernate

    "VanguardLH" wrote:

    > Eric wrote:
    >
    > > I would like to set schedule to perform defragment? after that, make XP with
    > > SP3 into hibernation automatically.
    > > Does anyone have any suggestions?

    >
    > In Task Scheduler, add an event to run:
    >
    > - Defrag
    >
    > Run: defrag.exe <d> -v
    >
    > This runs the included defrag tool in Windows. <d> is the drive letter of
    > whatever drive you want to defrag. Only 1 drive can be specified at a time,
    > so if you have multiple drives to defrag then you need multiple events: one
    > event to handle the defrag of each drive. I would suggest having the
    > defrags for different drives scheduled to run on a different day so they
    > don't overlap. Of course, you could install a 3rd party defragger, like
    > Auslogic's Defrag or Piriform's Defraggler, and read their manual on what
    > command line to use in a scheduled task that you define.
    >
    > - Hibernate
    >
    > You already forgot about asking for this in your prior post a week ago in
    > this same newsgroup? Do you even bother reading replies to your posts? You
    > replied to the thread but you forgot about it already? Why should we waste
    > time answering you again?
    >
    > Go look at the following article which gave you the commands you can put
    > into a .bat file that you then run using a scheduled task:
    >
    > http://groups.google.com/group/micr...0c09e645bf1/4cfe8fcb188363df#4cfe8fcb188363df
    > (short URL: http://tinyurl.com/29arl4n)
    >
    > Since you'll be using a .bat file to run the commands to hibernate, you
    > could also put the defrag command for your drive(s) in the same batch file
    > and just have one event to run the .bat file.
    > .
    >
     
  6. Eric

    Eric Flightless Bird

    I remember the option "notify me of replies" was worked before, maybe 3-5
    year ago, then it does not work forever.
    Thank for any suggestions
    Eric

    "HeyBub" wrote:

    > Eric wrote:
    >
    >
    >
    > >
    > > Another issue is that this forum is no longer support email alert, so
    > > it is very inconvenient to
    > > look for my past post. I may need to go back at least 10-15 pages for
    > > my post on a few day ago.
    > > Do you have any suggestions on how to easily look up my past posts?

    >
    > This "forum" never did support email alerts. Inasmuch as you're using the
    > horrid web interface, you'll have to live with its eccentricities,
    > limitations, and blunders. I have no idea as to how to find a prior post in
    > whatever web interface you're using.
    >
    > If, however, you were using a civilized news reader - Outlook Express,
    > Thunderbird, Forte Agent, etc., you'd invoke the "Find" command.
    >
    >
    >
    > .
    >
     
  7. VanguardLH

    VanguardLH Flightless Bird

    Eric wrote:

    > I would like to perform defragment, after that hibernate XP, I know how to
    > hibernate XP individually from my past post on this forum, but I don't
    > know how to activate hibernation, once the process of defragment is done,
    > and it cannot be schedule, because the time required for defragment
    > cannot be estimated.


    And why I suggested putting the commands in a .bat file.

    > Do you have any suggestions on how to activate hibernation after the
    > process of defragment is done?
    >
    > Another issue is that this forum is no longer support email alert,


    Irrelevant since YOU replied to that prior thread so you know about the
    commands that can be put in a .bat file. I don't use the webnews-for-
    dummies interface that Microsoft uses to pretend this is a forum instead of
    Usenet. That web-based client breaks all the time.
     
  8. VanguardLH

    VanguardLH Flightless Bird

    Eric wrote:

    > I put following codes into batch file, but when I run it, defragment seems
    > not to perform at all, XP go hibernation within a second.
    > Do you have any suggestions on what wrong the code is?
    > Thank you very much for any suggestions
    > Eric
    >
    > C:/WINDOWS\system32\defrag.exe z: -v
    > %windir%\System32\rundll32.exe powrprof.dll,SetSuspendState Hibernate


    Do you actually have a drive that is designated with the letter "z:"?
    Doesn't sound like that would be a hard disk. When you open a command shell
    (cmd.exe) and execute that first command to run defrag.exe, does it do
    anything? It can't do anything more in a .bat file than it does when you
    run the command yourself.
     
  9. Bob I

    Bob I Flightless Bird

    Given that defragging doesn't need to be done but once or twice a year,
    why bother?

    Eric wrote:
    > I would like to set schedule to perform defragment? after that, make XP with
    > SP3 into hibernation automatically.
    > Does anyone have any suggestions?
    > Thanks in advance for any suggestions
    > Eric
     

Share This Page