Jake wrote:
> Hi,
>
> I want to use NTBackup to copy users' Outlook Express .DBX files to a
> subfolder in their home directory.
>
> NTBackup seems to want to show up in GUI mode even if I start it from
> the command line. Can it be used in pure command line mode without ever
> popping up to confuse the user?
>
> If yes, which parameters do I use to simply copy
>
copy or Backup?
to _copy_ use xcopy "source" "Dest"
> C:\Documents and Settings\%username%\<somefolder> to
> P:\Backups\<somefolder>
>
> .. overwriting the old backup with the new one (no incremental version
> storage which grows the backup to astronimical sizes).
>
> However the DBX files are located behind a folder with a GUID name
> (%username%\Local Settings\Program
> data\Identities\{GUID}\Microsoft\Outlook Express
>
> How can I address this folder which have a different (and unknown) GUID
> for each user?
>
There might also be additional identities what makes it more difficult.
Assuming there is only one ID, try this:
@echo off&setlocal
CD /D "%username%\Local Settings\Program data\Identities\{*}"
for /F "tokens=2 delims={}" %%A in ("%CD%") do set GUID=%%A
CD "Microsoft\Outlook Express"
xcopy "%CD%\*.*" "P:\Some Folder\" /S [other xcopy options]
> Finally, if the above is possible, how could schedule tha batch file to
> be started a certain time delay (say one hour) after the user has logged
> in?
>
If you schedule to one hour, who is logged in then? If P: is a network
path, it is not necessarily available running under a system account.
If a user is working copying might disturb heavily.
HTH
--
Greetings
Matthias
|