Article View: be.comp.programming
Article #1372Re: batch file voor afsluiten
From: Peterus
Date: Tue, 05 Apr 2005 07:08
Date: Tue, 05 Apr 2005 07:08
61 lines
3258 bytes
3258 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. Hallo Wimjan met het commando shutdown sluit de pc wel af maar de optie -t xx werkt niet ook kan ik niet lezen wat ik na -c "xxx" heb geschreven het dos venster blijft namelijk niet staan het sluit direct. Dit heb ik al kan jij dit misschien even bekijken? dank bij voorbaat @echo off echo sla uw werk op want binnen xx seconden wordt je uitgelogd. echo start shutdown -l -c "einde sessie" -t xx einde
Technical Details
Message-ID:
<d2tdgm$301p$1@nl-news.euro.net>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.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-mailReferences:
<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!news3.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: Tue, 5 Apr 2005 09:08:02 +0200 Organization: EuroNet Internet Lines: 63 Message-ID: <d2tdgm$301p$1@nl-news.euro.net> References: <d2r77g$vk$1@nl-news.euro.net> <MPG.1cbb6584a30e3c97989899@news.leidenuniv.nl> NNTP-Posting-Host: 24.171-201-80.adsl.skynet.be X-Trace: nl-news.euro.net 1112684886 98361 80.201.171.24 (5 Apr 2005 07:08:06 GMT) X-Complaints-To: usenet@nl-news.euro.net NNTP-Posting-Date: Tue, 5 Apr 2005 07:08:06 +0000 (UTC) Cancel-Lock: sha1:ikqgxZV3xSGOM/JAqCf070OTu/Q= sha1:W97biSumRMPBQcv9M527LhcOgAw= 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