Esselbach Contentteller CMS

  • Programs
  • Games
  • Articles
  • News
  • Links
  • About
    • Virus, Malware & Rootkit Cleanup Links
  • Forums
Site Search
Loading

Programs
· Tweaking.com Programs
· Site Info
· Games

Articles
· Tips and Tweaks
· Virus, Malware & Rootkit Cleanup Links



Donate
All our programs are completely free. We are 100% advertising and donation supported.

Top Programs collapse/expand
· Windows Repair (All In One)
· Simple System Tweaker
· Advanced System Tweaker
· Repair Windows Firewall
· System Information Tool
· Registry Backup
· Reset Registry Permissions
· Repair Internet Explorer
· Repair Winsock & DNS Cache
· Repair Hosts File

Top Articles collapse/expand
· Virus, Malware & Rootkit Cleanup Links
· Tweaking.com - Windows Repair (All In One) Tips
· Increase Network Performance
· IP/DNS Tweak
· Tweaking.com - Advanced System Tweaker Online Help
· Fix/Repair File Permissions
· Should I Turn Off My Computer (Most commonly asked question)
· Tweaking.com - Registry Backup Online Help & FAQ
· Right-Click Tweaks (2000, XP, Vista, 2003, 2008 & 7)
· Increase Windows Performance By Changing Visual Effects (XP, Vista & 7)

News collapse/expand
  • Latest
  • Top

· Tweaking.com - Registry Backup v1.6.1 Released
· Tweaking.com - Windows Repair (All in One) v1.9.14 Released
· Tweaking.com - svchost.exe Lookup Tool v1.5.0 Released
· Tweaking.com - Windows Repair (All in One) v1.9.13 Released
· Tweaking.com - Advanced System Tweaker v2.0.0 Released
· Tweaking.com - Windows Repair (All in One) v1.9.12 Released
· Tweaking.com - Advanced System Tweaker v1.2.0 Released
· Two Program Updates
· Tweaking.com - Registry Compressor v1.0.0 Released
· Tweaking.com - Windows Repair (All in One) v1.9.10 Released
· Tweaking.com - Simple Performance Boost v1.0.2 Released
· Login issue fixed.
· Tweaking.com - Windows Repair (All in One) v1.5.3 Released
· Tweaking.com - Windows Repair (All in One) v1.6.4 Released
· Tweaking.com - Simple Performance Boost v1.0.5 Released
· Tweaking.com - Windows Repair (All in One) v1.5.2 Released
· Soft launch - Forums coming soon.
· Tweaking.com - Windows Repair (All in One) v1.8.0 Released
· 3 Programs Updated
· Tweaking.com - Windows Repair v1.0 Released

Top Links collapse/expand
· PcWinTech.com
· SimplePortForwarding.com
· Microsoft Support


Tweaking.com » Articles » Auto Defrag & Shutdown » Page 1

Auto Defrag & Shutdown

Posted by: Shane on: 08/09/2011 08:46 PM [ Print | 0 comment(s) ]



This is a little bat file I made that I use quite a bit on my systems and on customers.

The bat file defrags the C: drive and once it is done then shuts down the system. For some customers I have this scheduled in the windows task scheduler to run at midnight.
They leave their systems on when they leave the office, the system backs up and then at midnight it defrags and shuts down.

Why would you need this? Well besides from the example above here is why I use it. I'm about to head to bed, its late, and so I double click on the bat file, turn off my monitor and go to bed.
My computer will now be defragging and then power off (I turn my system off when I don't use it) So now I don't have to sit and wait for the defrag and it happens while I sleep.

Anyways I thought I would put this little file out for people who could use it and for the geek out there looking for a way of doing something similar and they can use this as an example.

The bat file looks like so:

ECHO PERFORMING DEFRAG...
start /wait %systemroot%\system32\defrag.exe C:

start %systemroot%\system32\SHUTDOWN.exe -s -f -t 30

EXIT



As you can see simple as can be. Enjoy!

Tweaking.com » Articles » Auto Defrag & Shutdown » Page 1
© 2013 Tweaking.com
Powered by Contentteller® Business Edition