Re: Anybody using "SyncToy"? - Re: Back-ups



"Jeff Gaines" <jgaines_newsid@xxxxxxxxxxx> wrote in message
news:xn0ehgpas1ws047003@xxxxxxxxxxxxxxxxxxxxxx
<snip>
> **********************
> REM backup.bat
> XCOPY pathfrom/*.* pathto /D /E /V /C /I /Q /R /Y
> poweroff.exe "JGPORT"
> **********************
<snip>
> Poweroff is a free utility that turns off the computer -
> aggressively so you have to make sure nothing important is running
> :-)
> If you can't find it on the web I could mail it to you.
> That's only in the batch file on the laptop, the server runs 24/7.

WinXP (& W2K/WinNT) comes with a (Free, included) Utility called
"Shutdown.exe", which can be used to do that as well.

I think things like the "Poweroff.exe" Utility were prolly written
in the days of w9x, which needed a special Call to a Routine in one
of the OS Shell DLLS to force a Shutdown?

How to Exit Windows 98/Me Automatically Using a Batch File
http://support.microsoft.com/?kbid=234216

rundll32.exe shell32.dll,SHExitWindowsEx 12

The "12" Forces a ShutDown (4) & a PowerOff (8)

HTH

--
pmj


.



Relevant Pages