Help needed with .bat file
GCC Consulting
gccconsulting at comcast.net
Fri Jun 23 10:41:56 PDT 2006
Don,
Have xcopy only copy the changed files
Xcopy \filepro d:\appl\filepro /a /s /y
The above works if you actually backed up the filepro directory
Replace /a with /exclude
/EXCLUDE:file1[+file2][+file3]...
Specifies a list of files containing strings. Each string
should be in a separate line in the files. When any of the
strings match any part of the absolute path of the file to be
copied, that file will be excluded from being copied. For
example, specifying a string like \obj\ or .obj will exclude
all files underneath the directory obj or all files with the
.obj extension respectively.
You could actually have a filepro output process run the xcopy command using
/d date option to only copy those files changed that day. Just build the
date in the format xcopy wants 06-22-06 and append it on to the command
Declare mycopy.today(8,*)
Today=xlate(@td,"/","-") - replaces slashes with dashes
Mycopy="xcopy \filepro d:\appl\filepro /s /y /d:"{today
System mycopy
END
That would speed up the whole process as only those changed files would be
copied and not everything.
Richard Kreiss
GCC Consulting
> -----Original Message-----
> From:
> filepro-list-bounces+gccconsulting=comcast.net at lists.celestial
> .com
> [mailto:filepro-list-bounces+gccconsulting=comcast.net at lists.c
> elestial.com] On Behalf Of Don Coleman
> Sent: Friday, June 23, 2006 10:01 AM
> To: 'filePro'
> Subject: Help needed with .bat file
>
> Windows 2000 Advanced Server, Windows 2000 & XP clients, fP
> v5.0.13, client runs as close as possible to 24X7. Beginning
> just after midnight I have a batch process in Scheduled Tasks
> which uses xcopy to copy their fP programs and data to a
> separate folder. This separate folder is included in their
> system backup while their working filePro folder is not.
> This is done because I can xcopy the fP programs and data
> faster to the separate folder than I can have them run their
> system backup. This gets them back working several hours
> earlier. My question is there are two fP files with one
> qualifier for each month's data (i.e. key2006_01 plus the
> qualified indices) which go back two years. I have no need
> to backup the qualified files for each month each night as
> their data doesn't change. I can have the client make a
> master of those in event of a disaster but they do
> occasionally need to access these records so I can't remove
> the qualifiers. I am using the following simple .bat file:
>
> ECHO OFF
> TITLE=DIAMOND filePro XCOPY BACKUP PROCESS SET FILES=80 XCOPY
> E:\QS1\TODO\FILEPRO E:\QS1\TODO\BKFILEPRO /S/E/Y EXIT
>
> Can anyone with more knowledge of .bat scripting & XCOPY tell
> me how to eliminate certain files while including others.
> OTW, I want to copy the map, key, prc, tok, etc. but not the
> qualified files and indices. On the other files in my
> filepro folder I want to XCOPY everything. I seem to
> remember this being discussed a month or two ago, perhaps by
> John since I believe he faced a similar situation (24X7) at
> Nexus. However, that was probably on *nix, not a windows
> network. Of course I could be mistaken.
> Any advice appreciated.
>
> Don Coleman
> Donald G. Coleman, Consultant
> 402 Andrew Circle
> Indiana, PA 15701
> dcoleman at dgcreact.com
> (724) 349-6302
>
>
>
> _______________________________________________
> Filepro-list mailing list
> Filepro-list at lists.celestial.com
> http://mailman.celestial.com/mailman/listinfo/filepro-list
>
More information about the Filepro-list
mailing list