prad_intel has asked for the wisdom of the Perl Monks concerning the following question:
But I did find that the shutdown occurs without closing applications and during the next start Windows checks for errors quoting improper shutdown. Actually I want to do something like - 1) Close the Windows Media Player which is running the video. 2)Then shutdown I consulted me friend and he is telling that to close windows media player i need to track process id or pid , Is that necessary ? Also how do i close other folders using perl and make a safe shutdown. Regardssleep 1800; # am sure to sleep in half an hour system "c:\\windows\\system32\\shutdown.exe -s";
prad
2005-09-27 Retitled by g0n, as per Monastery guidelines
Original title: 'perl help while sleeping !'
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Using Perl to shutdown windows
by GrandFather (Saint) on Sep 26, 2005 at 10:30 UTC | |
Re: Using Perl to shutdown windows
by puploki (Hermit) on Sep 26, 2005 at 10:35 UTC | |
Why shutdown?
by schwern (Scribe) on Sep 27, 2005 at 00:23 UTC |