Hello all,
Wanted to share a very simple batch script I wrote to help move your data from your collection machine to another destination.
You can download the script from github below. There are two versions, one for the base users and one for Array 2 node. If there are 3 node and 4 node users I can add more. Just ask.
What this does is very basic and simple. It sets Windows Environment Variables for My Documents\Voyager, and uses Robocopy to move whatever is in the Sequence folder, to a destination. I picked Robocopy because it will not blindly copy files to the destination that already exist (it will skip them) and it is a very robust file copy solution built into Windows already.
The reason I am setting the environment variables is that this is where new users files will default to (and where I continue to have my data stored) so its an easy plug and play for new folks.
You can add this to DragScript very easily during your END block. So when you wake up in the morning you will have all of your data waiting for you on your processing machine, or wherever you sent it to! It will log its output to whatever directory you place the script into, and call it from. For example, if you put the script on your desktop, the log will be on your desktop. The log is named VOYROBOCOPY.LOG.
Here is a minor sample of the log output. The log is useful to look at to ensure it has completed, since the command prompt window will not actually be visible when it is launched from DragScript.
-------------------------------------------------------------------------------
ROBOCOPY :: Robust File Copy for Windows
-------------------------------------------------------------------------------
Started : Sunday, May 24, 2020 3:06:53 PM
Source : C:\Users\bill\Documents\Voyager\Sequence\
Dest : \\ASTROBEAST\INBOX\
Files : *.*
Options : *.* /S /E /DCOPY:DA /COPY:DAT /NP /R:1000000 /W:30
------------------------------------------------------------------------------
6 C:\Users\bill\Documents\Voyager\Sequence\
*EXTRA Dir -1 \\ASTROBEAST\INBOX\EMPTY\
*EXTRA Dir -1 \\ASTROBEAST\INBOX\FLI Library\
*EXTRA Dir -1 \\ASTROBEAST\INBOX\Sequence\
*EXTRA File 61.8 m 60 Secs No Cal NEG25 - FLI16200.fit
New File 116.6 m Target_AutoFlat_FLAT_L_BIN1_-5C_001_20200511_192027_106_GA_0_OF_50_W.FIT
New File 116.6 m Target_AutoFlat_FLAT_L_BIN1_-5C_002_20200511_192035_410_GA_0_OF_50_W.FIT
New File 116.6 m Target_AutoFlat_FLAT_L_BIN1_-5C_003_20200511_192043_668_GA_0_OF_50_W.FIT
New File 116.6 m Target_AutoFlat_FLAT_L_BIN1_-5C_004_20200511_192051_929_GA_0_OF_50_W.FIT
New File 116.6 m Target_AutoFlat_FLAT_L_BIN1_-5C_005_20200511_192116_532_GA_0_OF_50_W.FIT
0 C:\Users\bill\Documents\Voyager\Sequence\4628-237\
15 C:\Users\bill\Documents\Voyager\Sequence\BIAS\
102 C:\Users\bill\Documents\Voyager\Sequence\Calib\
130 C:\Users\bill\Documents\Voyager\Sequence\M101\
11 C:\Users\bill\Documents\Voyager\Sequence\Polaris\
------------------------------------------------------------------------------
Total Copied Skipped Mismatch FAILED Extras
Dirs : 6 0 6 0 0 3
Files : 264 5 259 0 0 1
Bytes : 26.635 g 583.41 m 26.065 g 0 0 61.81 m
Times : 0:02:00 0:01:59 0:00:00 0:00:00
Speed : 5112402 Bytes/sec.
Speed : 292.534 MegaBytes/min.
Ended : Sunday, May 24, 2020 3:08:53 PM
I hope this is helpful to people and feel free to chime in, suggest some updates, ask questions, bake cookies, etc.
Clear Skies,
Bill