The date and time was Friday, April 17, 2009 2:40:16 PM, and on a whim,
ToddAndMargo pounded out on the keyboard:
> Hi All,
>
> I have a batch file that I run at shutdown on an
> XP-Pro-SP3 computer:
>
> REGEDIT4
>
> [HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\System\Scripts\Logoff\0\0]
> "Script"="C:\\NtUtil\\Backup-ExtHD3.bat"
> "Parameters"=""
> "ExecTime"=hex(b):00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00
>
> The last thing I do in the batch file it call Abakt, which
> copies a list of files to my backup drive:
>
> echo Backing up selected files (Abakt)
> echo Your Abakt profile is: %Profile2%
> %Abakt% -b -x "%Profile2%"
>
> Abakt will run for about 10 minutes, the windows shutdown
> screen will come up stating that it is running logoff
> scripts, switch to Windows is Shutting Down, and
> then the machine powers off.
>
> Problem: Abakt takes about 30 minutes to complete is tasks.
>
> Is there a way to tell windows to wait for my backup script to
> complete fully before shutting down?
>
> Many thanks,
> -T
>
Hi Todd,
I have a backup script run at shutdown also. Have you tested it at a
command prompt so you can watch it execute? I have copy and error logs
written in my batch file that open on Startup the next day, so I can
verify it completed properly. You might want to add something like that
to your batch file, or have the log from your backup program open.
As an aside, if you're launching the file using the group policy
Shutdown script, echo isn't really needed since you don't see what is
happening anyway.
Terry R.
--
Anti-spam measures are included in my email address.
Delete NOSPAM from the email address after clicking Reply.
|