PDA

View Full Version : Switch WIndows XP to standby mode every 2 hours and resume normal after 1 minute


Kent[_2_]
November 10th 09, 03:57 AM
Dear all,

For some special reasons, I want to switch my notebook to standby mode and
resume normal operation immdeiately after 1 minute at every 2 hours. I
assume it can be done by the schedule task function in Windows, but don't
know how to set the task.

Please help


Kent

Pegasus [MVP]
November 10th 09, 06:26 AM
"Kent" > wrote in message
...
> Dear all,
>
> For some special reasons, I want to switch my notebook to standby mode and
> resume normal operation immdeiately after 1 minute at every 2 hours. I
> assume it can be done by the schedule task function in Windows, but don't
> know how to set the task.
>
> Please help
>
>
> Kent

To put the laptop to sleep, schedule this command to run at the full hour
every two hours with a run time of 24 hours:
Rundll32.exe PowrProf.dll,SetSuspendState

To wake it up one minute later, schedule some simple command to run one
minute past the full hour every two hours with a run time of 24 hours, e.g.
attrib.exe
To make this one work, you must tick the box "Wake the computer to run this
task" under the Settings tab. It only works if supported by the power
management implemented on your laptop.

Kent[_2_]
November 10th 09, 08:21 AM
Thank you Pegasus.
If I now want to quit from an application software, say, outlook express
every 2 hours and resume it 1 minute later, how it can be done?
"C:\Program Files\Outlook Express\msimn.exe"


Kent



"Pegasus [MVP]" > bl...
>
> "Kent" > wrote in message
> ...
>> Dear all,
>>
>> For some special reasons, I want to switch my notebook to standby mode
>> and resume normal operation immdeiately after 1 minute at every 2 hours.
>> I assume it can be done by the schedule task function in Windows, but
>> don't know how to set the task.
>>
>> Please help
>>
>>
>> Kent
>
> To put the laptop to sleep, schedule this command to run at the full hour
> every two hours with a run time of 24 hours:
> Rundll32.exe PowrProf.dll,SetSuspendState
>
> To wake it up one minute later, schedule some simple command to run one
> minute past the full hour every two hours with a run time of 24 hours,
> e.g.
> attrib.exe
> To make this one work, you must tick the box "Wake the computer to run
> this task" under the Settings tab. It only works if supported by the power
> management implemented on your laptop.
>

Pegasus [MVP]
November 10th 09, 08:41 AM
You create a scheduled task that invokes this batch file:
@echo off
taskkill /f /im msimn.exe
ping localhost -n 60 > nul
"C:\Program Files\Outlook Express\msimn.exe"


"Kent" > wrote in message
...
> Thank you Pegasus.
> If I now want to quit from an application software, say, outlook express
> every 2 hours and resume it 1 minute later, how it can be done?
> "C:\Program Files\Outlook Express\msimn.exe"
>
>
> Kent
>
>
>
> "Pegasus [MVP]" >
> bl...
>>
>> "Kent" > wrote in message
>> ...
>>> Dear all,
>>>
>>> For some special reasons, I want to switch my notebook to standby mode
>>> and resume normal operation immdeiately after 1 minute at every 2 hours.
>>> I assume it can be done by the schedule task function in Windows, but
>>> don't know how to set the task.
>>>
>>> Please help
>>>
>>>
>>> Kent
>>
>> To put the laptop to sleep, schedule this command to run at the full hour
>> every two hours with a run time of 24 hours:
>> Rundll32.exe PowrProf.dll,SetSuspendState
>>
>> To wake it up one minute later, schedule some simple command to run one
>> minute past the full hour every two hours with a run time of 24 hours,
>> e.g.
>> attrib.exe
>> To make this one work, you must tick the box "Wake the computer to run
>> this task" under the Settings tab. It only works if supported by the
>> power management implemented on your laptop.
>>
>
>

Kent[_2_]
November 19th 09, 10:20 AM
Dear Pegasus,

I found a dos prompt windows left after your batch file is executed, then
it stop and didn't work anymore as scheduled, until the Dos Prompt windows
is closed manually. How to close that windows automatically?

Kent



"Pegasus [MVP]" > bl...
> You create a scheduled task that invokes this batch file:
> @echo off
> taskkill /f /im msimn.exe
> ping localhost -n 60 > nul
> "C:\Program Files\Outlook Express\msimn.exe"
>
>
> "Kent" > wrote in message
> ...
>> Thank you Pegasus.
>> If I now want to quit from an application software, say, outlook express
>> every 2 hours and resume it 1 minute later, how it can be done?
>> "C:\Program Files\Outlook Express\msimn.exe"
>>
>>
>> Kent
>>
>>
>>
>> "Pegasus [MVP]" > bl...
>>>
>>> "Kent" > wrote in message
>>> ...
>>>> Dear all,
>>>>
>>>> For some special reasons, I want to switch my notebook to standby mode
>>>> and resume normal operation immdeiately after 1 minute at every 2
>>>> hours. I assume it can be done by the schedule task function in
>>>> Windows, but don't know how to set the task.
>>>>
>>>> Please help
>>>>
>>>>
>>>> Kent
>>>
>>> To put the laptop to sleep, schedule this command to run at the full
>>> hour every two hours with a run time of 24 hours:
>>> Rundll32.exe PowrProf.dll,SetSuspendState
>>>
>>> To wake it up one minute later, schedule some simple command to run one
>>> minute past the full hour every two hours with a run time of 24 hours,
>>> e.g.
>>> attrib.exe
>>> To make this one work, you must tick the box "Wake the computer to run
>>> this task" under the Settings tab. It only works if supported by the
>>> power management implemented on your laptop.
>>>
>>
>>
>
>

Pegasus [MVP]
November 19th 09, 10:34 AM
Try this variant:
@echo off
taskkill /f /im msimn.exe
ping localhost -n 60 > nul
start /b "OE" "C:\Program Files\Outlook Express\msimn.exe"
exit

"Kent" > wrote in message
...
> Dear Pegasus,
>
> I found a dos prompt windows left after your batch file is executed, then
> it stop and didn't work anymore as scheduled, until the Dos Prompt windows
> is closed manually. How to close that windows automatically?
>
> Kent
>
>
>
> "Pegasus [MVP]" >
> bl...
>> You create a scheduled task that invokes this batch file:
>> @echo off
>> taskkill /f /im msimn.exe
>> ping localhost -n 60 > nul
>> "C:\Program Files\Outlook Express\msimn.exe"
>>
>>
>> "Kent" > wrote in message
>> ...
>>> Thank you Pegasus.
>>> If I now want to quit from an application software, say, outlook express
>>> every 2 hours and resume it 1 minute later, how it can be done?
>>> "C:\Program Files\Outlook Express\msimn.exe"
>>>
>>>
>>> Kent
>>>
>>>
>>>
>>> "Pegasus [MVP]" >
>>> bl...
>>>>
>>>> "Kent" > wrote in message
>>>> ...
>>>>> Dear all,
>>>>>
>>>>> For some special reasons, I want to switch my notebook to standby mode
>>>>> and resume normal operation immdeiately after 1 minute at every 2
>>>>> hours. I assume it can be done by the schedule task function in
>>>>> Windows, but don't know how to set the task.
>>>>>
>>>>> Please help
>>>>>
>>>>>
>>>>> Kent
>>>>
>>>> To put the laptop to sleep, schedule this command to run at the full
>>>> hour every two hours with a run time of 24 hours:
>>>> Rundll32.exe PowrProf.dll,SetSuspendState
>>>>
>>>> To wake it up one minute later, schedule some simple command to run one
>>>> minute past the full hour every two hours with a run time of 24 hours,
>>>> e.g.
>>>> attrib.exe
>>>> To make this one work, you must tick the box "Wake the computer to run
>>>> this task" under the Settings tab. It only works if supported by the
>>>> power management implemented on your laptop.
>>>>
>>>
>>>
>>
>>
>
>

Kent[_2_]
November 23rd 09, 02:39 AM
Dear Pegasus,

Your solution well fits my usage, thank you for your kind assistance.

Kent



"Pegasus [MVP]" > bl...
> Try this variant:
> @echo off
> taskkill /f /im msimn.exe
> ping localhost -n 60 > nul
> start /b "OE" "C:\Program Files\Outlook Express\msimn.exe"
> exit
>
> "Kent" > wrote in message
> ...
>> Dear Pegasus,
>>
>> I found a dos prompt windows left after your batch file is executed,
>> then it stop and didn't work anymore as scheduled, until the Dos Prompt
>> windows is closed manually. How to close that windows automatically?
>>
>> Kent
>>
>>
>>
>> "Pegasus [MVP]" > bl...
>>> You create a scheduled task that invokes this batch file:
>>> @echo off
>>> taskkill /f /im msimn.exe
>>> ping localhost -n 60 > nul
>>> "C:\Program Files\Outlook Express\msimn.exe"
>>>
>>>
>>> "Kent" > wrote in message
>>> ...
>>>> Thank you Pegasus.
>>>> If I now want to quit from an application software, say, outlook
>>>> express every 2 hours and resume it 1 minute later, how it can be done?
>>>> "C:\Program Files\Outlook Express\msimn.exe"
>>>>
>>>>
>>>> Kent
>>>>
>>>>
>>>>
>>>> "Pegasus [MVP]" > bl...
>>>>>
>>>>> "Kent" > wrote in message
>>>>> ...
>>>>>> Dear all,
>>>>>>
>>>>>> For some special reasons, I want to switch my notebook to standby
>>>>>> mode and resume normal operation immdeiately after 1 minute at every
>>>>>> 2 hours. I assume it can be done by the schedule task function in
>>>>>> Windows, but don't know how to set the task.
>>>>>>
>>>>>> Please help
>>>>>>
>>>>>>
>>>>>> Kent
>>>>>
>>>>> To put the laptop to sleep, schedule this command to run at the full
>>>>> hour every two hours with a run time of 24 hours:
>>>>> Rundll32.exe PowrProf.dll,SetSuspendState
>>>>>
>>>>> To wake it up one minute later, schedule some simple command to run
>>>>> one minute past the full hour every two hours with a run time of 24
>>>>> hours, e.g.
>>>>> attrib.exe
>>>>> To make this one work, you must tick the box "Wake the computer to run
>>>>> this task" under the Settings tab. It only works if supported by the
>>>>> power management implemented on your laptop.
>>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
>

Kent[_2_]
November 23rd 09, 02:43 AM
One more problem Pegasus, my OS has been upgraded to Windows 7, but find
can't run the Outlook Express anymore. I like the simple OE rather than the
Outlook 2003. May the OE still be used in Windows 7?

Kent



"Pegasus [MVP]" > bl...
> Try this variant:
> @echo off
> taskkill /f /im msimn.exe
> ping localhost -n 60 > nul
> start /b "OE" "C:\Program Files\Outlook Express\msimn.exe"
> exit
>
> "Kent" > wrote in message
> ...
>> Dear Pegasus,
>>
>> I found a dos prompt windows left after your batch file is executed,
>> then it stop and didn't work anymore as scheduled, until the Dos Prompt
>> windows is closed manually. How to close that windows automatically?
>>
>> Kent
>>
>>
>>
>> "Pegasus [MVP]" > bl...
>>> You create a scheduled task that invokes this batch file:
>>> @echo off
>>> taskkill /f /im msimn.exe
>>> ping localhost -n 60 > nul
>>> "C:\Program Files\Outlook Express\msimn.exe"
>>>
>>>
>>> "Kent" > wrote in message
>>> ...
>>>> Thank you Pegasus.
>>>> If I now want to quit from an application software, say, outlook
>>>> express every 2 hours and resume it 1 minute later, how it can be done?
>>>> "C:\Program Files\Outlook Express\msimn.exe"
>>>>
>>>>
>>>> Kent
>>>>
>>>>
>>>>
>>>> "Pegasus [MVP]" > bl...
>>>>>
>>>>> "Kent" > wrote in message
>>>>> ...
>>>>>> Dear all,
>>>>>>
>>>>>> For some special reasons, I want to switch my notebook to standby
>>>>>> mode and resume normal operation immdeiately after 1 minute at every
>>>>>> 2 hours. I assume it can be done by the schedule task function in
>>>>>> Windows, but don't know how to set the task.
>>>>>>
>>>>>> Please help
>>>>>>
>>>>>>
>>>>>> Kent
>>>>>
>>>>> To put the laptop to sleep, schedule this command to run at the full
>>>>> hour every two hours with a run time of 24 hours:
>>>>> Rundll32.exe PowrProf.dll,SetSuspendState
>>>>>
>>>>> To wake it up one minute later, schedule some simple command to run
>>>>> one minute past the full hour every two hours with a run time of 24
>>>>> hours, e.g.
>>>>> attrib.exe
>>>>> To make this one work, you must tick the box "Wake the computer to run
>>>>> this task" under the Settings tab. It only works if supported by the
>>>>> power management implemented on your laptop.
>>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
>

Pegasus [MVP]
November 23rd 09, 07:00 AM
I doubt it very much. Best to ask a Windows 7 forum about your mail client
options.

"Kent" > wrote in message
...
> One more problem Pegasus, my OS has been upgraded to Windows 7, but find
> can't run the Outlook Express anymore. I like the simple OE rather than
> the Outlook 2003. May the OE still be used in Windows 7?
>
> Kent
>
>
>
> "Pegasus [MVP]" >
> bl...
>> Try this variant:
>> @echo off
>> taskkill /f /im msimn.exe
>> ping localhost -n 60 > nul
>> start /b "OE" "C:\Program Files\Outlook Express\msimn.exe"
>> exit
>>
>> "Kent" > wrote in message
>> ...
>>> Dear Pegasus,
>>>
>>> I found a dos prompt windows left after your batch file is executed,
>>> then it stop and didn't work anymore as scheduled, until the Dos Prompt
>>> windows is closed manually. How to close that windows automatically?
>>>
>>> Kent
>>>
>>>
>>>
>>> "Pegasus [MVP]" >
>>> bl...
>>>> You create a scheduled task that invokes this batch file:
>>>> @echo off
>>>> taskkill /f /im msimn.exe
>>>> ping localhost -n 60 > nul
>>>> "C:\Program Files\Outlook Express\msimn.exe"
>>>>
>>>>
>>>> "Kent" > wrote in message
>>>> ...
>>>>> Thank you Pegasus.
>>>>> If I now want to quit from an application software, say, outlook
>>>>> express every 2 hours and resume it 1 minute later, how it can be
>>>>> done?
>>>>> "C:\Program Files\Outlook Express\msimn.exe"
>>>>>
>>>>>
>>>>> Kent
>>>>>
>>>>>
>>>>>
>>>>> "Pegasus [MVP]" >
>>>>> bl...
>>>>>>
>>>>>> "Kent" > wrote in message
>>>>>> ...
>>>>>>> Dear all,
>>>>>>>
>>>>>>> For some special reasons, I want to switch my notebook to standby
>>>>>>> mode and resume normal operation immdeiately after 1 minute at every
>>>>>>> 2 hours. I assume it can be done by the schedule task function in
>>>>>>> Windows, but don't know how to set the task.
>>>>>>>
>>>>>>> Please help
>>>>>>>
>>>>>>>
>>>>>>> Kent
>>>>>>
>>>>>> To put the laptop to sleep, schedule this command to run at the full
>>>>>> hour every two hours with a run time of 24 hours:
>>>>>> Rundll32.exe PowrProf.dll,SetSuspendState
>>>>>>
>>>>>> To wake it up one minute later, schedule some simple command to run
>>>>>> one minute past the full hour every two hours with a run time of 24
>>>>>> hours, e.g.
>>>>>> attrib.exe
>>>>>> To make this one work, you must tick the box "Wake the computer to
>>>>>> run this task" under the Settings tab. It only works if supported by
>>>>>> the power management implemented on your laptop.
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
>

Elmo[_2_]
November 23rd 09, 02:25 PM
Kent wrote:
> One more problem Pegasus, my OS has been upgraded to Windows 7, but find
> can't run the Outlook Express anymore. I like the simple OE rather than the
> Outlook 2003. May the OE still be used in Windows 7?
>
> Kent

Mozilla Thunderbird works well with Windows 7. It's similar to OE, and
it allows you to filter messages by whether the sender is in your
address book. (I often harp on the benefits of filtering by sender, so
messages in e.g., a SPAM folder can be scrutinized before opening. Just
add any email to the Address Book to pass the filter in the future.)

> "Pegasus [MVP]" > bl...
>> Try this variant:
>> @echo off
>> taskkill /f /im msimn.exe
>> ping localhost -n 60 > nul
>> start /b "OE" "C:\Program Files\Outlook Express\msimn.exe"
>> exit
>>
>> "Kent" > wrote in message
>> ...
>>> Dear Pegasus,
>>>
>>> I found a dos prompt windows left after your batch file is executed,
>>> then it stop and didn't work anymore as scheduled, until the Dos Prompt
>>> windows is closed manually. How to close that windows automatically?
>>>
>>> Kent
>>>
>>>
>>>
>>> "Pegasus [MVP]" > bl...
>>>> You create a scheduled task that invokes this batch file:
>>>> @echo off
>>>> taskkill /f /im msimn.exe
>>>> ping localhost -n 60 > nul
>>>> "C:\Program Files\Outlook Express\msimn.exe"
>>>>
>>>>
>>>> "Kent" > wrote in message
>>>> ...
>>>>> Thank you Pegasus.
>>>>> If I now want to quit from an application software, say, outlook
>>>>> express every 2 hours and resume it 1 minute later, how it can be done?
>>>>> "C:\Program Files\Outlook Express\msimn.exe"
>>>>>
>>>>>
>>>>> Kent
>>>>>
>>>>>
>>>>>
>>>>> "Pegasus [MVP]" > bl...
>>>>>> "Kent" > wrote in message
>>>>>> ...
>>>>>>> Dear all,
>>>>>>>
>>>>>>> For some special reasons, I want to switch my notebook to standby
>>>>>>> mode and resume normal operation immediately after 1 minute at every
>>>>>>> 2 hours. I assume it can be done by the schedule task function in
>>>>>>> Windows, but don't know how to set the task.
>>>>>>>
>>>>>>> Please help
>>>>>>>
>>>>>>>
>>>>>>> Kent
>>>>>> To put the laptop to sleep, schedule this command to run at the full
>>>>>> hour every two hours with a run time of 24 hours:
>>>>>> Rundll32.exe PowrProf.dll,SetSuspendState
>>>>>>
>>>>>> To wake it up one minute later, schedule some simple command to run
>>>>>> one minute past the full hour every two hours with a run time of 24
>>>>>> hours, e.g.
>>>>>> attrib.exe
>>>>>> To make this one work, you must tick the box "Wake the computer to run
>>>>>> this task" under the Settings tab. It only works if supported by the
>>>>>> power management implemented on your laptop.

--
Joe =o)

Ken Blake, MVP
November 23rd 09, 07:12 PM
On Mon, 23 Nov 2009 10:43:50 +0800, "Kent" > wrote:

> One more problem Pegasus, my OS has been upgraded to Windows 7, but find
> can't run the Outlook Express anymore.



I'm not Pegasus, but that's correct. Outlook Express doesn't come
with, and will not run in, Windows 7.


> I like the simple OE rather than the Outlook 2003.


Outlook, whether 2003 or any other version, has nothing to do with
Windows 7, nor with any other version of Windows. It's a separate
program, part of Microsoft Office, that has to be bought to be used.


> May the OE still be used in Windows 7?


As I said above, no. There are however many choices of e-mail programs
you can use, several of which are freeware. Microsoft's free program
is Windows Live Mail, and a web search will find you many others to
try. My advice is to ignore anyone's recommendation, try several of
them, and pick out the one *you* like best.

--
Ken Blake, Microsoft MVP (Windows Desktop Experience) since 2003
Please Reply to the Newsgroup

Kent[_2_]
November 24th 09, 02:35 AM
I use OE only for newsgroup, would Live Mail or other free program fit my
purpose?


Kent





"Ken Blake, MVP" >
...
> On Mon, 23 Nov 2009 10:43:50 +0800, "Kent" > wrote:
>
>> One more problem Pegasus, my OS has been upgraded to Windows 7, but find
>> can't run the Outlook Express anymore.
>
>
>
> I'm not Pegasus, but that's correct. Outlook Express doesn't come
> with, and will not run in, Windows 7.
>
>
>> I like the simple OE rather than the Outlook 2003.
>
>
> Outlook, whether 2003 or any other version, has nothing to do with
> Windows 7, nor with any other version of Windows. It's a separate
> program, part of Microsoft Office, that has to be bought to be used.
>
>
>> May the OE still be used in Windows 7?
>
>
> As I said above, no. There are however many choices of e-mail programs
> you can use, several of which are freeware. Microsoft's free program
> is Windows Live Mail, and a web search will find you many others to
> try. My advice is to ignore anyone's recommendation, try several of
> them, and pick out the one *you* like best.
>
> --
> Ken Blake, Microsoft MVP (Windows Desktop Experience) since 2003
> Please Reply to the Newsgroup

Roy Smith[_7_]
November 24th 09, 06:23 AM
Kent wrote:
> I use OE only for newsgroup, would Live Mail or other free program fit my
> purpose?
>
>
> Kent
>
>
>
>
>
> "Ken Blake, MVP" >
> ...
>> On Mon, 23 Nov 2009 10:43:50 +0800, "Kent" > wrote:
>>
>>> One more problem Pegasus, my OS has been upgraded to Windows 7, but find
>>> can't run the Outlook Express anymore.
>>
>>
>> I'm not Pegasus, but that's correct. Outlook Express doesn't come
>> with, and will not run in, Windows 7.
>>
>>
>>> I like the simple OE rather than the Outlook 2003.
>>
>> Outlook, whether 2003 or any other version, has nothing to do with
>> Windows 7, nor with any other version of Windows. It's a separate
>> program, part of Microsoft Office, that has to be bought to be used.
>>
>>
>>> May the OE still be used in Windows 7?
>>
>> As I said above, no. There are however many choices of e-mail programs
>> you can use, several of which are freeware. Microsoft's free program
>> is Windows Live Mail, and a web search will find you many others to
>> try. My advice is to ignore anyone's recommendation, try several of
>> them, and pick out the one *you* like best.

There are several newsreader programs available. Some also handle email
such as Windows Live Mail and Thunderbird, and others just do
Newsgroups. Now as to which one to use, that's your decision so
download a few and try them out.

--

Roy Smith
Windows XP Pro SP3

Ken Blake, MVP
November 24th 09, 02:51 PM
On Tue, 24 Nov 2009 10:35:57 +0800, "Kent" > wrote:

> I use OE only for newsgroup, would Live Mail or other free program fit my
> purpose?


Yes to both. But again, I recommend that you try a few and select what
you like best.



> "Ken Blake, MVP" >
> ...
> > On Mon, 23 Nov 2009 10:43:50 +0800, "Kent" > wrote:
> >
> >> One more problem Pegasus, my OS has been upgraded to Windows 7, but find
> >> can't run the Outlook Express anymore.
> >
> >
> >
> > I'm not Pegasus, but that's correct. Outlook Express doesn't come
> > with, and will not run in, Windows 7.
> >
> >
> >> I like the simple OE rather than the Outlook 2003.
> >
> >
> > Outlook, whether 2003 or any other version, has nothing to do with
> > Windows 7, nor with any other version of Windows. It's a separate
> > program, part of Microsoft Office, that has to be bought to be used.
> >
> >
> >> May the OE still be used in Windows 7?
> >
> >
> > As I said above, no. There are however many choices of e-mail programs
> > you can use, several of which are freeware. Microsoft's free program
> > is Windows Live Mail, and a web search will find you many others to
> > try. My advice is to ignore anyone's recommendation, try several of
> > them, and pick out the one *you* like best.
> >
> > --
> > Ken Blake, Microsoft MVP (Windows Desktop Experience) since 2003
> > Please Reply to the Newsgroup
>

--
Ken Blake, Microsoft MVP (Windows Desktop Experience) since 2003
Please Reply to the Newsgroup

Google