micky wrote:
I'm looking for a way to either
  A) Mute the sound of my win10 PC, soon to be win11, at a future time, >> maybe 2 hours from when I start to get sleepy.  OR
  B) Hibernate the computer at a future time, maybe 2 hours from when I >> start to get sleepy.
You can use the PsShutdown tool from Microsoft Sysinternals. See: <https://learn.microsoft.com/en-us/sysinternals/downloads/psshutdown>
psshutdown64.exe -d -t 7200
On Mon, 09 Sep 2024 08:48:33 -0400, micky <NONONOmisc07@fmguy.com>Write a batch to run instead of the screen saver to do what you want
wrote:
A) Mute the sound of my win10 PC, soon to be win11, at a future time,
maybe 2 hours from when I start to get sleepy.
Turn off the sound before you go to bed.
I'm looking for a way to either
A) Mute the sound of my win10 PC, soon to be win11, at a future time, maybe 2 hours from when I start to get sleepy. OR
B) Hibernate the computer at a future time, maybe 2 hours from when I start to get sleepy.
A) Mute the sound of my win10 PC, soon to be win11, at a future time,
maybe 2 hours from when I start to get sleepy.
On 9/9/24 10:40 AM, Graham J wrote:
micky wrote:
I'm looking for a way to either
A) Mute the sound of my win10 PC, soon to be win11, at a future time, >>> maybe 2 hours from when I start to get sleepy. OR
B) Hibernate the computer at a future time, maybe 2 hours from when I >>> start to get sleepy.
You can use the PsShutdown tool from Microsoft Sysinternals. See:
<https://learn.microsoft.com/en-us/sysinternals/downloads/psshutdown>
psshutdown64.exe -d -t 7200
My thought too. I'd setup a batch file to run this in xxx minutes. Every time you get to nodding
off, just click the batch file on the desktop.
I have a mp3 player I use at night in bed. I set it for 1 hour and then try to go to sleep without
worrying if it will run the battery out. Sometimes I set it for 30 mins.
On 9/9/2024 10:59 AM, jerryab wrote:
On Mon, 09 Sep 2024 08:48:33 -0400, micky <NONONOmisc07@fmguy.com>
wrote:
A) Mute the sound of my win10 PC, soon to be win11, at a future time,
maybe 2 hours from when I start to get sleepy.
Turn off the sound before you go to bed.
Write a batch to run instead of the screen saver to do what you want
after a period of inactivity.
In alt.comp.os.windows-10, on Mon, 9 Sep 2024 11:11:13 -0400, Zaidy036 <Zaidy036@air.isp.spam> wrote:
On 9/9/2024 10:59 AM, jerryab wrote:
On Mon, 09 Sep 2024 08:48:33 -0400, micky <NONONOmisc07@fmguy.com>
wrote:
A) Mute the sound of my win10 PC, soon to be win11, at a future time,
maybe 2 hours from when I start to get sleepy.
Turn off the sound before you go to bed.
The goal is to listen until I fall asleep.
Write a batch to run instead of the screen saver to do what you want
after a period of inactivity.
Not a bad idea, I think, but I don't know know how to write one, and
there are times when I'm listening but doing nothing else on the
computer, and I think a screen saver would run even if I were't
sleeping.
Thanks anyhow.
timer.bat15:03:26.19
On Mon, 9/9/2024 12:29 PM, micky wrote:
In alt.comp.os.windows-10, on Mon, 9 Sep 2024 11:11:13 -0400, Zaidy036
<Zaidy036@air.isp.spam> wrote:
On 9/9/2024 10:59 AM, jerryab wrote:
On Mon, 09 Sep 2024 08:48:33 -0400, micky <NONONOmisc07@fmguy.com>
wrote:
A) Mute the sound of my win10 PC, soon to be win11, at a future time, >>>>> maybe 2 hours from when I start to get sleepy.
Turn off the sound before you go to bed.
The goal is to listen until I fall asleep.
Write a batch to run instead of the screen saver to do what you want
after a period of inactivity.
Not a bad idea, I think, but I don't know know how to write one, and
there are times when I'm listening but doing nothing else on the
computer, and I think a screen saver would run even if I were't
sleeping.
Thanks anyhow.
In the following, note that I don't write batch scripts :-)
I'm strictly a copy/pasta programmer of sorts. YMMV.
They cover a lot of the details here. In particular, a prototype script is provided.
You'll need to look at the syntax of the shutdown command, to see if you
can make it suspend. I don't have time right now to do that.
https://www.wikihow.com/Automatically-Shut-Down-Your-Computer-at-a-Specified-Time
@echo off
:W
if %time%==23:30:00.00 goto :X
goto :W
:X
shutdown.exe /s /f /t 60 /c
While that script is certainly pretty and illustrates a point,
on my other computer, the computer would suck ~130 watts while
executing the script. We need to fit a sleep in there, to
reduce the polling activity of the script. And it appears "sleep"
was removed from batch, some time ago.
https://serverfault.com/questions/809346/batch-file-if-time-not-working
SET "ADJUSTEDTIME=%TIME: =0%"
IF "%ADJUSTEDTIME:~0,5%" GEQ "19:58" GOTO :X
Now the script looks like this. Verify that pressing control-C causes the >batch file to exit in the Command Prompt window. The "echo %time%" can
be removed as you see fit. It's just a debug, as is the echo below it.
I don't want the script to be shutting down the computer quite yet,
while I'm working on the script. To "arm" the script, you need to
remove the REM and other jazz, from before the prospective command.
@echo off
:W
set "adjustedtime=%time: =0%"
if "%adjustedtime:~0,5%" geq "15:04" goto :X
timeout /t 10 /nobreak > NUL
echo %time%
goto :W
:X
echo I would be executing your command at %time% if there was a command to execute
rem (your command goes here, uncomment to arm it ==> ) shutdown.exe /s /f /t 60 /c
****************************
The output looks like this:
timer.bat15:03:26.19
15:03:36.16
15:03:46.14
15:03:56.21
15:04:06.17
I would be executing your command at 15:04:06.17 if there was a command to execute
I would do a Hello World program for you, but there is a $1 shipping and handling fee :-)
Maybe someone else knows how to pass the "15:04" string inside ??? :-)
Paul
I'm looking for a way to either
A) Mute the sound of my win10 PC, soon to be win11, at a future time, maybe 2 hours from when I start to get sleepy. OR
B) Hibernate the computer at a future time, maybe 2 hours from when I start to get sleepy.
Buple wrote:
micky wrote:Strangely, the combination of "/h" for hibernate and "/t" to specify a
I'm looking for a way to [...]Hibernate the computer at a future time, maybe 2 hours from when I
start to get sleepy.
time delay, doesn't work?
shutdown.exe /h /t 7200
micky wrote:Strangely, the combination of "/h" for hibernate and "/t" to specify a
I'm looking for a way to [...]Hibernate the computer at a future time, maybe 2 hours from when I
start to get sleepy.
micky <NONONOmisc07@fmguy.com> wrote:
I'm looking for a way to either
A) Mute the sound of my win10 PC, soon to be win11, at a future time,
maybe 2 hours from when I start to get sleepy. OR
B) Hibernate the computer at a future time, maybe 2 hours from when I
start to get sleepy.
I've been watching or listening to the computer at night, and wrt A,
I've seen suggested from NirSoft, SoundVolumeView.exe, but the same
source suggests using the Scheduler. Fine if I want it every time at
the same time, but is there a way to execute it N minutes later than
Now?
WRT B, in a dos box, Shutdown /H will hibernate the PC but for some
reason doesn't accept a future time parameter.
Shutdown /s /t 7200 will shutdown two hours from
now, but restarting would be a lot more convenient if I could use
hibernate. Is there a way to Hibernate 2 hours from now?
Like most people, I think, I sleep better in silence. What I've been
doing is waking up and muting it by hand, probably because the sound
wakes me up. Usually I fall back to sleep but not always.
Can't you set the screensaver to go to sleep after a couple of hours?
What happens if set it for 2 hours and an hour later, set it for 2 hours >again. I think the first one still runs at the originally scheduled
time.
MIME-Version: 1.0
X-Mozilla-News-Host: news.bbs.nz
In-Reply-To: <9sqtdjhgtaht43iku58rom6g7s7q7r89j3@4ax.com>
Content-Type: text/plain;
Content-Transfer-Encoding: 7bit
Content-Language: en
On 09/09/2024 13:48, micky wrote:
I'm looking for a way to either
A) Mute the sound of my win10 PC, soon to be win11, at a future time,
maybe 2 hours from when I start to get sleepy. OR
B) Hibernate the computer at a future time, maybe 2 hours from when I
start to get sleepy.
How about Power settings. Win11 has this this: <https://i.imgur.com/SeJfYbx.png>
Windows 10 should have something similar.
micky wrote:
I'm looking for a way to either
A) Mute the sound of my win10 PC, soon to be win11, at a future time,
maybe 2 hours from when I start to get sleepy. OR
B) Hibernate the computer at a future time, maybe 2 hours from when I
start to get sleepy.
You can use the PsShutdown tool from Microsoft Sysinternals. See: ><https://learn.microsoft.com/en-us/sysinternals/downloads/psshutdown>
psshutdown64.exe -d -t 7200
In alt.comp.os.windows-10, on Mon, 9 Sep 2024 15:40:58 +0100, Graham J ><nobody@nowhere.co.uk> wrote:
micky wrote:
I'm looking for a way to either
A) Mute the sound of my win10 PC, soon to be win11, at a future time, >>> maybe 2 hours from when I start to get sleepy. OR
B) Hibernate the computer at a future time, maybe 2 hours from when I >>> start to get sleepy.
You can use the PsShutdown tool from Microsoft Sysinternals. See: >><https://learn.microsoft.com/en-us/sysinternals/downloads/psshutdown>
psshutdown64.exe -d -t 7200
During my early testing, the first time a dos box shows up and asks >permission or something, but after that the dos box just blinks and if
it gave a message, I had no time to read it. So I assumed it had worked,
but maybe it didn't. (And I tried it last night and this morning, I
don't think it had worked.)
Today I opened an dos box and tested this there, and I get error
message:
Error establishing communication with psshutdown service on local
system:
The system cannot find the file specified.
Do I need to put the PSShutdown directory in the path? What I did is
put the fully qualified file name with all the parameters in the
shortcut, so does that mean it can find the first file, psshutown64.exe,
but not the files that it calls?
The path is currently about 440 characters long. Does that mean some
other software I installed increased the limit from 256? So I don't
have to worry about adding another directory?
In alt.comp.os.windows-10, on Mon, 9 Sep 2024 15:40:58 +0100, Graham J <nobody@nowhere.co.uk> wrote:
micky wrote:
I'm looking for a way to either
A) Mute the sound of my win10 PC, soon to be win11, at a future time, >>> maybe 2 hours from when I start to get sleepy. OR
B) Hibernate the computer at a future time, maybe 2 hours from when I >>> start to get sleepy.
You can use the PsShutdown tool from Microsoft Sysinternals. See:
<https://learn.microsoft.com/en-us/sysinternals/downloads/psshutdown>
psshutdown64.exe -d -t 7200
During my early testing, the first time a dos box shows up and asks permission or something, but after that the dos box just blinks and if
it gave a message, I had no time to read it. So I assumed it had worked,
but maybe it didn't. (And I tried it last night and this morning, I
don't think it had worked.)
Today I opened an dos box and tested this there, and I get error
message:
Error establishing communication with psshutdown service on local
system:
The system cannot find the file specified.
Do I need to put the PSShutdown directory in the path? What I did is
put the fully qualified file name with all the parameters in the
shortcut, so does that mean it can find the first file, psshutown64.exe,
but not the files that it calls?
The path is currently about 440 characters long. Does that mean some
other software I installed increased the limit from 256? So I don't
have to worry about adding another directory?
Buple wrote:
micky wrote:Strangely, the combination of "/h" for hibernate and "/t" to specify a
I'm looking for a way to [...]Hibernate the computer at a future time, maybe 2 hours from when I
start to get sleepy.
time delay, doesn't work?
shutdown.exe /h /t 7200
I'm looking for a way to either
A) Mute the sound of my win10 PC, soon to be win11, at a future time,
maybe 2 hours from when I start to get sleepy. OR
B) Hibernate the computer at a future time, maybe 2 hours from when I
start to get sleepy.
I've been watching or listening to the computer at night, and wrt A,
I've seen suggested from NirSoft, SoundVolumeView.exe, but the same
source suggests using the Scheduler. Fine if I want it every time at
the same time, but is there a way to execute it N minutes later than
Now?
WRT B, in a dos box, Shutdown /H will hibernate the PC but for some
reason doesn't accept a future time parameter.
Shutdown /s /t 7200 will shutdown two hours from
now, but restarting would be a lot more convenient if I could use
hibernate. Is there a way to Hibernate 2 hours from now?
Like most people, I think, I sleep better in silence. What I've been
doing is waking up and muting it by hand, probably because the sound
wakes me up. Usually I fall back to sleep but not always.
Like most people, I think, I sleep better in silence. What I've been
doing is waking up and muting it by hand, probably because the sound
wakes me up. Usually I fall back to sleep but not always.
I'm looking for a way to either
A) Mute the sound of my win10 PC, soon to be win11, at a future time,
maybe 2 hours from when I start to get sleepy. OR
B) Hibernate the computer at a future time, maybe 2 hours from when I
start to get sleepy.
I've been watching or listening to the computer at night, and wrt A,
I've seen suggested from NirSoft, SoundVolumeView.exe, but the same
source suggests using the Scheduler. Fine if I want it every time at
the same time, but is there a way to execute it N minutes later than
Now?
WRT B, in a dos box, Shutdown /H will hibernate the PC but for some
reason doesn't accept a future time parameter.
Shutdown /s /t 7200 will shutdown two hours from
now, but restarting would be a lot more convenient if I could use
hibernate. Is there a way to Hibernate 2 hours from now?
Like most people, I think, I sleep better in silence. What I've been
doing is waking up and muting it by hand, probably because the sound
wakes me up. Usually I fall back to sleep but not always.
In alt.comp.os.windows-10, on Mon, 09 Sep 2024 08:48:33 -0400, micky <NONONOmisc07@fmguy.com> wrote:
I'm looking for a way to either
A) Mute the sound of my win10 PC, soon to be win11, at a future time,
maybe 2 hours from when I start to get sleepy. OR
B) Hibernate the computer at a future time, maybe 2 hours from when I
start to get sleepy.
I appeciate the suggestions an dI'm working on sleeping the whole
computer 2 hours after I get sleepy, but I had a great new thought.
Find an add-on that will mute or close a tab in the browser, and afacit
Sleep Timer Fix, not the original Sleep Timer, works perfectly in
Firefox. You can set it for 1 miuute to 99 hours.
The same person wrote Sleep Timer for Chrome, but it was never fixed and
it fails if you cancel it, and in the one time I ran it, it worked but
was frozen for next time. Had to delete the add-on and install it
again. Useful I guess if something is real important. Unfortunately
for me, Sling.com recommends Chrome and really didn't work well in
Firefox, so I'm stuck. The note also says Chrome may get rid of that
app because it doesn't meet their standards, and I can see why. There
is another similar add-on that works with Youtube (that wuld be good for
me, Netflix and a couple other streamers that I don't have. Havent'
tried it yet.
Like most people, I think, I sleep better in silence. What I've been
doing is waking up and muting it by hand, probably because the sound
wakes me up. Usually I fall back to sleep but not always.
In alt.comp.os.windows-10, on Tue, 10 Sep 2024 13:59:57 -0400, micky <NONONOmisc07@fmguy.com> wrote:
In alt.comp.os.windows-10, on Mon, 9 Sep 2024 15:40:58 +0100, Graham J
<nobody@nowhere.co.uk> wrote:
micky wrote:
I'm looking for a way to either
A) Mute the sound of my win10 PC, soon to be win11, at a future time, >>>> maybe 2 hours from when I start to get sleepy. OR
B) Hibernate the computer at a future time, maybe 2 hours from when I >>>> start to get sleepy.
You can use the PsShutdown tool from Microsoft Sysinternals. See:
<https://learn.microsoft.com/en-us/sysinternals/downloads/psshutdown>
psshutdown64.exe -d -t 7200
During my early testing, the first time a dos box shows up and asks
permission or something, but after that the dos box just blinks and if
it gave a message, I had no time to read it. So I assumed it had worked,
but maybe it didn't. (And I tried it last night and this morning, I
don't think it had worked.)
Today I opened an dos box and tested this there, and I get error
message:
Error establishing communication with psshutdown service on local
system:
The system cannot find the file specified.
Do I need to put the PSShutdown directory in the path? What I did is
I added it to the PATH and I got the same error message.
I googled the error message but haven't found a relevant hit yet.
FWIW, I remember all the extra entries in the laptop, but I find it interesting that my path in the desktop running win10 pro is 185 bytes
but in the laptop with win10 Home it's 440 bytes.
put the fully qualified file name with all the parameters in the
shortcut, so does that mean it can find the first file, psshutown64.exe,
but not the files that it calls?
The path is currently about 440 characters long. Does that mean some
other software I installed increased the limit from 256? So I don't
have to worry about adding another directory?
From 2019, this is an example. You can see this one is in %SystemRoot%,and perhaps this is an example of a remote injection or something. (from medium.com)
On Fri, 10/11/2024 1:02 PM, micky wrote:
In alt.comp.os.windows-10, on Mon, 09 Sep 2024 08:48:33 -0400, micky
<NONONOmisc07@fmguy.com> wrote:
I'm looking for a way to either
A) Mute the sound of my win10 PC, soon to be win11, at a future time,
maybe 2 hours from when I start to get sleepy. OR
B) Hibernate the computer at a future time, maybe 2 hours from when I
start to get sleepy.
I appeciate the suggestions an dI'm working on sleeping the whole
computer 2 hours after I get sleepy, but I had a great new thought.
Find an add-on that will mute or close a tab in the browser, and afacit
Sleep Timer Fix, not the original Sleep Timer, works perfectly in
Firefox. You can set it for 1 miuute to 99 hours.
The same person wrote Sleep Timer for Chrome, but it was never fixed and
it fails if you cancel it, and in the one time I ran it, it worked but
was frozen for next time. Had to delete the add-on and install it
again. Useful I guess if something is real important. Unfortunately
for me, Sling.com recommends Chrome and really didn't work well in
Firefox, so I'm stuck. The note also says Chrome may get rid of that
app because it doesn't meet their standards, and I can see why. There
is another similar add-on that works with Youtube (that wuld be good for
me, Netflix and a couple other streamers that I don't have. Havent'
tried it yet.
Like most people, I think, I sleep better in silence. What I've been
doing is waking up and muting it by hand, probably because the sound
wakes me up. Usually I fall back to sleep but not always.
I would think a hibernate command, would be more guaranteed to work.
It puts all the other software in a sleep state. Anything that involved >browsers, would be flaky at best (work some days, not others).
Paul
It poopped into my head that maybe I can mute the browswer tab I'm
looking at and listening too.
Both Chrome and Firefox have one or more, if you search Extensions or >Add-ons. Since I've been using sling to watch tv news, it doesn't work
well on Firefox (they even say that) so I'm using Chome and I got the >extension Sleep Timer, and it was easy to install and start. I presume
it will actually mute the tab when I said to, (2 hours from now, well,
1:47.) It gives the choice of muting or closing.
An add-on with the same icon is offered in Firefox.
MIME-Version: 1.0
X-Mozilla-News-Host: news.bbs.nz
In-Reply-To: <9sqtdjhgtaht43iku58rom6g7s7q7r89j3@4ax.com>
Content-Type: text/plain;
Content-Transfer-Encoding: 7bit
Content-Language: en
On 09/09/2024 13:48, micky wrote:
I'm looking for a way to either
A) Mute the sound of my win10 PC, soon to be win11, at a future time,
maybe 2 hours from when I start to get sleepy. OR
B) Hibernate the computer at a future time, maybe 2 hours from when I
start to get sleepy.
How about Power settings. Win11 has this this: ><https://i.imgur.com/SeJfYbx.png>
In alt.comp.os.windows-10, on Tue, 10 Sep 2024 00:00:00 +0000, Buple <valid@Buple.valid> wrote:
MIME-Version: 1.0
X-Mozilla-News-Host: news.bbs.nz
In-Reply-To: <9sqtdjhgtaht43iku58rom6g7s7q7r89j3@4ax.com>
Content-Type: text/plain;
Content-Transfer-Encoding: 7bit
Content-Language: en
On 09/09/2024 13:48, micky wrote:
I'm looking for a way to either
A) Mute the sound of my win10 PC, soon to be win11, at a future time, >>> maybe 2 hours from when I start to get sleepy. OR
B) Hibernate the computer at a future time, maybe 2 hours from when I >>> start to get sleepy.
How about Power settings. Win11 has this this:
<https://i.imgur.com/SeJfYbx.png>
Like a dog hunting a fox, I was so caught up in pssshutdown, I didn't appreciate this the first time I read it, a month ago. That is so
obvious. I had Sleep set to Never. I just set it to 2 hours. That
should fix it. 10 seconds to change it. Thanks.
At least I had sense enough to reread the posts I'd already read.
And I did learn some stuff about pssshutdown that might be useful later.
Windows 10 should have something similar.
I'm looking for a way to either
A) Mute the sound of my win10 PC, soon to be win11, at a future time, maybe 2 hours from when I start to get sleepy. OR
B) Hibernate the computer at a future time, maybe 2 hours from when I start to get sleepy.
I've been watching or listening to the computer at night, and wrt A,
I've seen suggested from NirSoft, SoundVolumeView.exe, but the same
source suggests using the Scheduler. Fine if I want it every time at
the same time, but is there a way to execute it N minutes later than
Now?
WRT B, in a dos box, Shutdown /H will hibernate the PC but for some
reason doesn't accept a future time parameter.
Shutdown /s /t 7200 will shutdown two hours from
now, but restarting would be a lot more convenient if I could use
hibernate. Is there a way to Hibernate 2 hours from now?
Like most people, I think, I sleep better in silence. What I've beenWrite a simple batch that 2 hours from its start shuts off your
doing is waking up and muting it by hand, probably because the sound
wakes me up. Usually I fall back to sleep but not always.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 361 |
Nodes: | 16 (2 / 14) |
Uptime: | 123:34:31 |
Calls: | 7,716 |
Files: | 12,861 |
Messages: | 5,727,956 |