I use thus:
XCOPY "C:\Documents and Settings\Bill\My Documents\Backup\DXB2"
"F:\DXB4\" /D /Y
F is my cdrw; DXB2 is my DXBase directory.
and I think XCopy is just a touch better.
look it over, it may save some time.
Copies files and directory trees.
XCOPY source [destination] [/A | /M] [/D[:date]] [/P] [/S [/E]] [/W] [/C] [/I]
[/Q] [/F]
[/L] [/H] [/R] [/T] [/U] [/K] [/N]
source Specifies the file(s) to copy.
destination Specifies the location and/or name of new files.
/A Copies files with the archive attribute set, doesn't change the
attribute.
/M Copies files with the archive attribute set, turns off the archive
attribute.
/D:date Copies files changed on or after the specified date. If no date
is given,
copies only those files whose source time is newer than the destination time.
/P Prompts you before creating each destination file.
/S Copies directories and sub directories except empty ones.
/E Copies directories and sub directories, including empty ones. Same as
/S /E. May
be used to modify /T.
/W Prompts you to press a key before copying.
/C Continues copying even if errors occur.
/I If destination does not exist and copying more than one file, assumes
that
destination must be a directory.
/Q Does not display file names while copying.
/F Displays full source and destination file names while copying.
/L Displays files that would be copied.
/H Copies hidden and system files also.
/R Overwrites read-only files.
/T Creates directory structure, but does not copy files. Does not include
empty
directories or sub directories. /T /E includes empty directories and sub
directories.
/U Updates the files that already exist in destination.
/K Copies attributes. Normal xcopy will reset read-only attributes.
/Y Overwrites existing files without prompting.
/-Y Prompts you before overwriting existing files.
/N Copy using the generated short names.
EXAMPLES
xcopy h:\*.* /a /e /k
The above command would copy everything located on the H drive to the drive you
are
currently on.
----- Original Message -----
From: "Jim McDonald" <[EMAIL PROTECTED]>
To: "Dxbase Reflector" <[email protected]>
Sent: Saturday, February 21, 2004 6:28 PM
Subject: [DXBase] Backup batch file
> The subject comes up periodically of backing up DXbase files to another
> drive. I use a DOS batch file with a shortcut on my desktop. I execute it
> when DXbase is not running. Maybe a quick backup routine will be included
> in the next version, but I am using this now.
>
> I recently had to update mine for a new PC. I succeeded in making it fail,
> I think because I didn't realize the need to use quotation marks, which I
> didn't do when I learned DOS over 20 years ago. In case anyone else wants
> it, I have it copied below. You'll have to adjust your paths (i.e., drive
> names and folder names) accordingly.
>
> Jim N7US
> -----------------------------------------------------------------------
> Rem Copy all important DXBase files to a mapped drive H:
>
> copy "C:\Program Files\Scientific Solutions\DXbase 2004\*.co"
> H:\Backups\DXbBak /y
> copy "C:\Program Files\Scientific Solutions\DXbase 2004\*.mdb"
> H:\Backups\DXbBak /y
> copy "C:\Program Files\Scientific Solutions\DXbase 2004\*.ini"
> H:\Backups\DXbBak /y
> copy "C:\Windows\hosts" H:\Backups\DXbBak /y
>
> Rem Copy all important DXBase files to a mapped Zip drive Z:
>
> copy "C:\Program Files\Scientific Solutions\DXbase 2004\*.CO"
> Z:\Backups\DXbBak /y
> copy "C:\Program Files\Scientific Solutions\DXbase 2004\*.mdb"
> Z:\Backups\DXbbBak /y
> copy "C:\Program Files\Scientific Solutions\DXbase 2004\*.ini"
> Z:\Backups\DXbBak /y
> copy "C:\Windows\hosts" Z:\Backups\DXbBak /y
>
>
> _______________________________________________
> DXBase Reflector - Please visit us on the web at www.dxbase.com
> - - - - - - - - - - - - - - - - - - - - - - -
> To UNSUBSCRIBE please visit:
> http://mailman.qth.net/mailman/listinfo/dxbase
>
>