416-621-9348 cgreaves@chrisgreaves.com Visit www.ChrisGreaves.com for this image! Chris_GEDC1894_Head (Small).JPG
Home Services Products

Encryption And Off-site Backup Storage (Home) ; Overview ; The Problem ; The Essence Of The Solution ; How Long Does It Take To Do A Backup? ; Assumptions ; Breakdown Of Tasks ; The Stand-Alone Solution ; The Networked Solution ; Let’s Get Started ; Mounting The Backup Drive ; Mounting An Encrypted Drive ; Waiting For The Backup Drive ; Processing Each Local Drive ; RoboCopy New And Later Files ; RoboCopy Parameter Files ; Append Session Details To A Log File ; Shutting Down the Computer ; Review For Local Systems ; Putting Together The Local Backup System ; SUBSTituting A Drive For A Folder ; Assembling The Batch File ; ( TITLE commands ); Running The Backup Batch File ; Examining Our Results ; Waiting For A Set Of Drives ; Issue the Backup Command To A Set Of Drives ; Modifying The Driving Batch File ; What About The Log File? ; The Upgraded Set Of Batch Files ; Encryption of backup data ; What Is Involved In Encrypting A Backup Device? ; ( Advice On Passwords ); What Is Involved In Mounting An Encrypted Device? ; User Mounted Or Automated? ; Using A DOS Batch File To Facilitate Mounting ; Using A DOS Batch File To Facilitate Dismounts ; Making The External Drives Available Across The Network ; Mounting A Shared Drive For Sharing ; Installing On A Networked Computer ; Running On The Big Beige Box ; An Improved Method Of Waiting ; Shutdown Or Restart? ; At Long Last! A Working Version! ; The Backup.BAT file ; The Mount.BAT file ; The ProcessDrive.BAT file ; The Shutdown.BAT File ; The Encryption Process


Loading

Toronto and Mississauga, Friday, December 03, 2010 8:29 AM

Copyright © 1996-2010 Chris Greaves. All Rights Reserved.

Shutting Down the Computer

You’ll come to grief with this one, I promise!

Let’s face it: we are going to write AND TEST a DOS Batch file whose purpose is to shut down the computer.

Of course, Windows is supposed to prompt you to save files during the process, but you know it won’t, or that “Accidents will happen”, so, before proceding further, save all your work and, if thought appropriate, shut down any running applications.

Let’s start our tests in a safe manner.

You’ll find a copy of ShutDown.exe in your Windows/System32 folder:

Visit www.ChrisGreaves.com for this image! BackE011.JPG

That means it will execute when you type its name on the command line.

Use Shutdown.exe /? to read a help screen.

Title %0 - Shut down the computer system
ShutDown.exe -s -f -t 00
REM END

Here’s a little DOS Batch file that will do the trick.

You may want to consider removing the “-f” switch. I like to live dangerously .....

Review For Local Systems


Loading

Toronto and Mississauga, Friday, December 03, 2010 8:29 AM

Copyright © 1996-2010 Chris Greaves. All Rights Reserved.