🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: be.comp.programming
Article #1373

Re: batch file voor afsluiten

#1373
From: Peterus
Date: Wed, 06 Apr 2005 07:22
54 lines
2924 bytes
"Wimjan" <news@inventio.nl> schreef in bericht
news:MPG.1cbb6584a30e3c97989899@news.leidenuniv.nl...
> Peterus schreef:
> > Hallo specialisten
> >
> > Ik zou graag een batchfile schrijven die op een bepaald uur de gebruiker
> > afsluit.
> > Maar vooreerst zou de gebruiker een waarschuwing moeten krijgen dat hij
zijn
> > werk moet opslaan.
> > Dus eerst de melding en dan een 20 tal seconden later de pc afsluiten.
> > Kan iemand mij helpen want het lukt mij niet.(WIN XP HOME)
> >
> Wel, da's toch een simpele combinatie van de Task Scheduler (Taakplanner
in
> het Nederlands?) met het programma shutdown.exe? Uit een andere post op
> Usenet:
>
> <citaat uit bericht c59up0tongkblti517g75ajo8n7oas54m8@4ax.com>
>
> C:\Windows\ System32\Shutdown.exe, [... append the command line switch -l
> (to log off), -s (to shutdown), or -r (to reboot).
>
> If you also add the switch -t xx (where xx is a number of seconds),
> Shutdown.exe will display a warning and count down the specified number of
> seconds before activating. You can specify a comment to be displayed with
> the warning by adding the switch -c "Your text". The countdown behavior is
> particularly useful if the shutdown program is launched through the
> Scheduled Tasks applet. For example, a library computer might be scheduled
> to shut down 10 minutes before closing, with a 60-second warning. Once the
> countdown has begun, the only way to stop it is to launch the program
again
> with the -a (for abort) switch on its command line.
>
> </citaat>
>
> Hoe je niets aan te programmeren, zit gewoon standaard in XP.
>
> > Dank bij voorbaat
> >
> Graag gedaan.
>
>
> Groet,
>
> Wimjan
>
> -- 
> Sleet is van vroeger, tegenwoordig gaat alles kapot.

Het is gelukt met het commando shutdow -s -t 20 -c "tekst"

nogmaals bedankt
Technical Details
Message-ID: <d302nd$8rm$1@nl-news.euro.net>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news2.google.com!proxad.net!212.101.4.254.MISMATCH!solnet.ch!solnet.ch!news2.euro.net!nl-news.euro.net!not-for-mail
References: <d2r77g$vk$1@nl-news.euro.net> <MPG.1cbb6584a30e3c97989899@news.leidenuniv.nl>

Show Full Headers
Complete Article Headers
X-Google-Thread: fcea4,cfaa991edfb64885
X-Google-Attributes: gidfcea4,public
X-Google-Language: DUTCH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news2.google.com!proxad.net!212.101.4.254.MISMATCH!solnet.ch!solnet.ch!news2.euro.net!nl-news.euro.net!not-for-mail
From: "Peterus" <not-open@hotmail.com>
Newsgroups: be.comp.programming
Subject: Re: batch file voor afsluiten
Date: Wed, 6 Apr 2005 09:22:24 +0200
Organization: EuroNet Internet
Lines: 56
Message-ID: <d302nd$8rm$1@nl-news.euro.net>
References: <d2r77g$vk$1@nl-news.euro.net> <MPG.1cbb6584a30e3c97989899@news.leidenuniv.nl>
NNTP-Posting-Host: 184.12-200-80.adsl.skynet.be
X-Trace: nl-news.euro.net 1112772141 9078 80.200.12.184 (6 Apr 2005 07:22:21 GMT)
X-Complaints-To: usenet@nl-news.euro.net
NNTP-Posting-Date: Wed, 6 Apr 2005 07:22:21 +0000 (UTC)
Cancel-Lock: sha1:VI+tF6ZdwP7Cm5jgn2ckfxBfiAI= sha1:efI19bcsF6GYsr+ENhNne2ZZ3fU=
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441