Thread View: be.comp.programming
4 messages
4 total messages
Started by Peterus
Mon, 04 Apr 2005 11:08
batch file voor afsluiten
Author: Peterus
Date: Mon, 04 Apr 2005 11:08
Date: Mon, 04 Apr 2005 11:08
10 lines
1348 bytes
1348 bytes
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) Dank bij voorbaat
Re: batch file voor afsluiten
Author: Wimjan
Date: Mon, 04 Apr 2005 13:54
Date: Mon, 04 Apr 2005 13:54
44 lines
2487 bytes
2487 bytes
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.
Re: batch file voor afsluiten
Author: 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
Re: batch file voor afsluiten
Author: Peterus
Date: Wed, 06 Apr 2005 07:22
Date: Wed, 06 Apr 2005 07:22
54 lines
2924 bytes
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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads