I have made a .bat file that shuts down my pc at a certain time, but I tend to restart it manually (cuz Im a game addict) :/

Im a student and a gamer, yet they tend to interfere with eachother cuz I am used to game until midnight :(
I have made a batch file that shuts my pc down, but as the title says, I often just restart it.
What I want to do is make it nearly impossible to do this.
Is it possible to make another batch file that does this?

Hi,
Here's a PowerShell script that will do what you're after:
if ( (Get-Date).Hour -lt 8 -or (Get-Date).Hour -ge 22 ) { Stop-Computer -Force }
Just be aware, this is completely unforgiving and there's no warning.
Set it to run as a scheduled task at whatever interval you'd like.
Don't retire TechNet! -
(Don't give up yet - 12,830+ strong and growing)

Similar Messages

  • Script To Shut Down a Program At A Certain Time

    Hi guys,
    Unfortunately I have absolutely no knowledge of scripts so that's why I'm asking help for something which is probably simple.
    I run a torrent program and I wish do quit it at a certain time when I am not around. Now, when you close the program, if there are transfers running it brings up a dialog box asking if you really wish to shut the program down. The torrent program is Transmission.
    Is there any way that I can write a script to shut the program down for me?

    I think you will need to do something with at
    so to kill foo.app at 9 am
    enter
    at 0900 killall foo.app
    from a terminal

  • Firefox 3.6.10 on WinXP spontaneously shuts down without warning after a certain time, whether or not the Internet is in active use, without disrupting or otherwise affecting any non-Internet programs running simultaneously.

    Ffox 3.6.10 on a Compaq Evo N8OOv began spontaneously shutting down w/o warning, closing all Internet applications w/ot affecting the operation of the computer, including non-Internet programs running simultaneously. Avira AntiVir Personal and with Spybot gave no hits suggesting infection.

    See:
    * http://kb.mozillazine.org/Firefox_crashes
    * [[Firefox crashes]]
    Your above posted system details show multiple Java Console extensions.
    You can uninstall (remove) the Java Console extensions and disable the Java Quick Starter extension as you do not need them to run Java applets.
    See http://kb.mozillazine.org/Java#Multiple_Java_Console_extensions
    See also http://www.java.com/en/download/help/quickstarter.xml - What is Java Quick Starter (JQS)? What is the benefit of running JQS? - 6.0
    Disable the Java Quick Starter extension: Tools -> Addons -> Extensions
    Control Panel -> Java -> Advanced tab -> Miscellaneous -> Java Quick Starter (disable)

  • I have a old excel file that does not show hiding cell boxes on my Mac.

    I have a old excel file that has some hiding info. in some of the cell boxes.  I can not see them on my Mac computers.  When I click on the cells to see the hidden info. it does not show up.

    Are you using Mac OSX version of Excel or the Windows version of Excel?  Regardless being specific to Excel, it would be best to ask in the Microsoft Office forums.
    Microsoft Office for Mac forums
    http://www.officeformac.com/productforums/
    Microsoft Office for Windows forums
    http://answers.microsoft.com/en-us/office

  • Help, i am trying to print my JPEG file that i created in photoshop at a photo lab but it is coming out like an X-ray. I have printed these files before so i have no idea what i am doing wrong.

    Help, i am trying to print my JPEG file that i created in photoshop at a photo lab but it is coming out like an X-ray. I have printed these files before so i have no idea what i am doing wrong.
    Could it be something i have done in my settings?
    or when i am saving the file to JPEG?

    Basically you're approaching this the wrong way around. What you need is the extreme sections to be quieter, not louder. The problem with moving the lower end of the audio is that you'll move the noise floor too, and get what's generally referred to as a 'pumping' effect. So what you do is to use a compressor to tame the peaks, and leave the lower level sound alone. When you've done that, you amplify (or normalize to a level you can determine) the whole signal. So the noise floor will be higher, but constant and not pumping. 'Match Volume' is a completely different tool for setting the overall levels of different tracks so that they sound approximately the same - it doesn't even begin to do what you want.
    If it's music you are treating, then I'd almost certainly use the multiband compressor, because you get less artefacts with this. You need to experiment with the threshold levels, and almost certainly not use a massive compression ratio - 3:1 or 4:1 should be sufficient (although it's hard to tell without actually hearing the audio). You can tell what it's doing at any given point because the downward meter indicates how hard it's working. In theory you can apply make-up gain with it as well, but personally I leave that until everything's treated and use the 'Normalize' tool to set an absolute max level.

  • When I make my computer to sleep after a few hour it will light up again and say that The mac have a problem need to be shut down

    I don't know why wne I put my mac to sleep it will light up it self after a few hour and say that the mac have a problem needs to be shut down, does anyone know why?

    Sounds like it's experiencing a kernel panic. Post the latest report. See
    About kernel panics,
    Technical Note TN2063: Understanding and Debugging Kernel Panics,
    Mac OS X Kernel Panic FAQ,
    Resolving Kernel Panics, and
    Tutorial: Avoiding and eliminating Kernel panics for more details.

  • I have some old pagemaker files that I need to open so I have bought a G3 on ebay. It turns on OK but all that comes uo on the screen is an envelope with alternating question mark and apple logo. Any ideas?

    I have some old pagemaker files that I need to open so I have bought a G3 on ebay. It turns on OK but all that comes uo on the screen is an envelope with alternating question mark and apple logo. Any ideas?

    I suggest you get 9.2.  You need to install the same or later version of the OS.  One some computer the shipped version has extra drivers.  The drivers will not be in the official release in this case 9.1.  They would be in 9.2.
    Mac OS 9.1 (Mac OS ROM 7.5.1) and Mac OS X 10.0.4 (4P13)
    *blinking question mark*
    The blinking question mark means that your mac firmware could not find a valid operating system
    on one of your disk volumes.
    Somethings to do to resolve the blinking question mark.
    http://docs.info.apple.com/article.html?artnum=58042
    Try holding down the option key then power on.  This brings up the startup manager.  Click on your hd. Click on right arrow key.
    You need to figure out the level of your firmware before installing 10.2 or greater. ( The PC name for firmware is BIOS. ) Installing 10.2 with a down level firmware will most likely make your iMac unusable and difficult to fix.
    What is firmware?
    The firmware software receives control when you poweron your machine.  It does some hardware testing and some hardware configuration then passes control to your version of Mac OS.   It reside on a PROM ( program read only memory ) chip on the logic board.
    Figuring out what level of firmware you have?
    Open Firmware, boot into Open Firmware.
    Power on your iMac while holding down command+option+o+f
    The first output line contains the firmware level. Mine reads:
    Apple PowerMac4,1 4.1.9f1 BootRom built on 09/14/01 at 13.18.04
    Copyright 1994-2001 Apple Computer Inc.
    On my machine, I have 4.1.9f1.
    What firmware do you need?
    http://docs.info.apple.com/article.html?artnum=86117
    For a slot loading iMac, this article indicates that you need to be running 9.1 or later version of Mac OS Classic.
    http://docs.info.apple.com/article.html?artnum=75130
    "The iMac Firmware Update 4.1.9 will only run on iMac computers with lot-loading CD or DVD drives running Mac OS 9.1 or later from a local drive. If you are using Mac OS X you must boot from a local Mac OS 9.1 or later writeable partition (not a CD, or network disk) prior to following the update instructions."
    You can download the Mac OS 9 updates from the Apple site.
    http://support.apple.com/kb/HT1387?viewlocale=en_US

  • Somehow I have made an iCloud account that is not verified and is asking to check my email at that is of that account and is an incorrect email address. how do I change the name of this unverified incorrect iCloud account/email?

    somehow I have made an iCloud account that is not verified and is asking me to check an email address that is of that account and also incorrect. How do I change the name of this incorrect icloud account/email address?

    Welcome to the Apple Community.
    If it's the iCloud email address that is incorrect, you cannot change it. If it's a non iCloud address, you can change it at My Apple ID

  • After closing Firefox, at times I have to use task manger to shut down firefox.exe*32 at times,

    As my title says, after closing Firefox, at times I have to use task manger to shut down firefox.exe*32 at times. I've left it running for up to 5 minutes to see if it shuts down/closes and it doesn't. I've also reloaded Firefox. My system is a Lenovo H210 with 3 gig of Ram and no added video card, the OS is Windows 7 Ultimate 64 bit SP1. I realize the memory is on the small side. I did try to update VLC player this morning to V 2.1.2 but it fails to run after instal due to file errors.
    Bill

    Hello,
    '''Try Firefox Safe Mode''' to see if the problem goes away. Safe Mode is a troubleshooting mode, which disables most add-ons.
    ''(If you're not using it, switch to the Default theme.)''
    * On Windows you can open Firefox 4.0+ in Safe Mode by holding the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * On Mac you can open Firefox 4.0+ in Safe Mode by holding the '''option''' key while starting Firefox.
    * On Linux you can open Firefox 4.0+ in Safe Mode by quitting Firefox and then going to your Terminal and running: firefox -safe-mode (you may need to specify the Firefox installation path e.g. /usr/lib/firefox)
    * Or open the Help menu and click on the '''Restart with Add-ons Disabled...''' menu item while Firefox is running.
    [[Image:FirefoxSafeMode|width=520]]
    ''Once you get the pop-up, just select "'Start in Safe Mode"''
    [[Image:Safe Mode Fx 15 - Win]]
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshooting extensions and themes]] article for that.
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    ''When you figure out what's causing your issues, please let us know. It might help other users who have the same problem.''
    Thank you.

  • I cut and pasted a description from the Internet. It posted as a link in iPhoto. It seems to have made a global change--all my descriptions are now blue, underlined, and Times Roman 12 rather than Arial white. How can I get this back to the default?

    I cut and pasted a description from the Internet. It posted as a link in iPhoto. It seems to have made a global change--all my descriptions are now blue, underlined, and Times Roman 12 rather than Arial white. How can I get this back to the default?

    Greetings,
    I've never seen this issue, and I handle many iPads, of all versions. WiFi issues are generally local to the WiFi router - they are not all of the same quality, range, immunity to interference, etc. You have distance, building construction, and the biggie - interference.
    At home, I use Apple routers, and have no issues with any of my WiFi enabled devices, computers, mobile devices, etc - even the lowly PeeCees. I have locations where I have Juniper Networks, as well as Aruba, and a few Netgears - all of them work as they should.
    The cheaper routers, Linksys, D-Link, Seimens home units, and many other no name devices have caused issues of various kinds, and even connectivity.
    I have no idea what Starbucks uses, but I always have a good connection, and I go there nearly every morning and get some work done, as well as play.
    You could try changing channels, 2.4 to 5 Gigs, changing locations of the router. I have had to do all of these at one time or another over the many years that I have been a Network Engineer.
    Good Luck - Cheers,
    M.

  • There are times when I try to start firefox 3.6 that it does not come up,but when I click it again, I get fire fox is running but not responing, close fire fox, or shut down computer. There are other times that it starts up normaly wit no probs

    # Question
    there are times when I try to start firefox 3.6 that it does not come up,but when I click it again, I get fire fox is running but not responding, close fire fox, or shut down computer. There are other times that it starts up normally wit no probs
    ..

    Not using any mouse pad, I have a very smooth desktop. But I just tried to use a sheet of A4 printing paper, but no result, the problem persisted.
    Someone on this forum suggested, that USB3 may interfere with the magic mouse.
    I have 2 LaCie HDD's about 70 cm away from the mouse, I use them on Thunderbolt. But in operation or not - the result is the same, the mouse plays up! Just now I was clicking the desktop and the mouse created a new folder!!
    Thanks for the advice, Bee
    Cheers, Gerd

  • I have to pay for something that was not my fault, nor Verizon's fault, but is an act of God/nature.  Why is that?

    As I stated above, "I have to pay for something that was not my fault, nor Verizon's fault, but is an act of God/nature.  Why is that?"  I had a hard time keeping my phone charged at one time, so I called/visited my local retailer of Verizon, and they ordered me a new battery (first step after cleaning my phone. Not like it was dirty anyways). Got a new battery, put it in, still same problem.  Would not charge...boo! So, I bring it back, and they order me a replacement phone, since it "is still under warranty, and insured".  When I first brought my phone in, the young lady said, "That is why it is not charging; it was the charger port, that is why it was not charging. It is as loose as a goose" So, that is why she ordered me a new one. 
         So, get the new phone, put "new battery" back in.  All is good, all of what, 2 maybe 3 weeks later.  Now it is doing the same thing again. Checked the charging port, it is fine.  Bring it in, to the store, and questioned the young man behind the desk, and find out why I was charged the $299.95(+taxes & s/h). He said, "it was because the old phone was because there was "corrosion" around the port."  Of course, there was not a single note of it being loose.  He continued, and said it was because it was there had to be a time where you spilled something on it, even if it was a drop of any kind of liquid. Or, you/ or someone else, had it in the shower with them."  (Really, a drop of liquid, or taking the phone with me in the shower?)  How I could I get a "drop" of liquid in it, if I had an Otter-box on it, or why would I take it in the shower with me?  I admit, I am not the sharpest tool in the shed, but, really? Come on now!
         Since, I have to now pay for it, I am kind ‘a wondering if anyone else has, or had the same problem with their phone (s).  My wife has the same phone and she has not had this same problem.  Makes me wonder.  Since, my phone is doing this again, if it is something that I am doing wrong with it or not.  So, now they have ordered me a new battery, and we will see if this will be a new fix, or "good bye to Verizon."  Any comments, or suggestions, please email wife and me, and let me know. Thanks and God bless.

    Don't really see how this would be an act of God/nature.
    Regardless, are you saying Verizon should have to pay for those, though?

  • I have an old aol email that I want to use as my iCloud email but MyAppleID won't accept it because it is already in use by Apple. May have been for my ibook but not sure.

    I have an old AOL email that I want to use as my iCloud email but MyAppleID won't accept it because it is already in use by Apple. May have been for my ibook but not sure. Any way I can find out what I used it for in the past?

    Go to https://appleid.apple.com and sign into manage your apple id with any apple ids you have access to and see if you're account is either an alternate email address or a rescue address.  If it is, remove it.  Have family members or friends check theirs, if they have apple ids, just in case.
    If that fails...
    Contact Apple for support and service - Apple Support
    You'll need to speak to someone in account security.  They'll have to go through a verification process with you, in order to reveal information.  If you fail that process, they will be able to tell you nothing.

  • I have Imac, and I can't shut down it at all

    I have Imac, and I can't shut down it at all

    If you've already chosen Shut Down from the Apple menu and it's hanging there indefinitely, press and hold the power button until it shuts off.

  • When closing "Word" it does not fully close and I have to force close it to shut down my computer, any suggestions?

    When closing "Word" it does not fully close and I have to force close it to shut down my computer, any suggestions?

    Sounds like Word is corrupt, I would uninstall the app and then reinstall. Also there is a MS Office for Mac forum,  you can find it at: Office for Mac Product Forums

Maybe you are looking for

  • Question regarding Listener and Server Processes in dedicated server mode

    Good morning, The Oracle documentation states that when a client connection request is received on the server, the Listener creates a Server Process which will work with the database instance to carry out the tasks requested by the user/client proces

  • Hide RANGE option in Multiple Selection Popup window

    This is regarding Parameter option. In parameter variable,i declared NO INTERVALS option to get only multiple values. In multiple selection popup window.i want to select only multiple values not RANGE values. so i want to either disable or hide the f

  • Keep out some personal photos from stream

    How can I keep out some photos I receive in my iPhone from stream to my iPad ,apple tv, Mac, iPod???

  • BPEL4WS 2.0 support

    Hello, I has a question to the version BPEL 2.0. With which version of the BPEL process of manager is BPEL 2.0 implemented? In the version 10.1.2.0.2 BPEL 1.1 is included at the moment. Is the version BPEL 2.0 support in the new version 10.1.3.1.0 in

  • Lion STARTUP disk

    I have lion and want to run the disk repair tool, but it says I need a boot disk. Since I downloaded Lion and don't have a boot disk, what do I do?