|
|
|
|
|
AI?
by Bert - 06/25/2025 7:52 AM
|
|
|
|
|
Posts: 1,023
Joined: February 2011
|
|
|
Joined: Aug 2009
Posts: 288
Member
|
OP
Member
Joined: Aug 2009
Posts: 288 |
So, I'm curious, in creating the backups, are you just automating ACBackup? or some other application? What routine is your script calling? Can't wait to dissect that.
Peter "1 Doctor, 0 Staff" Internal Medicine
|
|
|
|
Joined: Sep 2003
Posts: 12,884 Likes: 34
Member
|
Member
Joined: Sep 2003
Posts: 12,884 Likes: 34 |
The batch file is simply a text file with a series of commands which are executed by command.exe. A batch file .bat or a command file .cmd are used a lot for copying one folder to another folder via xcopy or copy with some variables called swithches.
The batch file has nothing to do with the AC program itself. It simply copies a folder and all of its contents to another location:
xcopy "C:\Program Files\Amazing Charts\" "\\server\acbackup\" /S /Y /H
For SQL you would need something like
Net Stop "SQL Server (AMAZINGCHARTS)" before the copy command line and
Net Start "SQL Server (AMAZINGCHARTS)" after the copy line Pause
Write the code for time and date stamp is a bit more complicated and write maintenace code is as well.
But, all of the code is on the Internet.
Bert Pediatrics Brewer, Maine
|
|
|
0 members (),
47
guests, and
23
robots. |
Key:
Admin,
Global Mod,
Mod
|
|
|
|
|