#PublicDomainLicense

#SubAtomicCopyLive

#DiscoverLive rename NewInTheZoo

These functions share a lot of code. They are atomic ish. If stopped, nothing is lost, but they do not pick up where they left off.

Working files are built with specific extension prefixes. If you pick the name "final" for a raw index, its name will be "final_ri.txt". If you mess with the "_ri", things wont work.

SubAtomicCopyLive Runs on live folders. Copies files/folders over VPN, pausing for dropouts.

If OneFile blank, whole folder copied

The code will stop and give a pop-up if the connection is lost.

Get the connection back. Make sure its back. See for yourself its back. Then select Continue.

Do this as often as needed and any size file will eventually make it through.

Copied files will be in the same folder as this app.

Copy only. No move or delete. Previous copies are not deleted. Its up to you to cleanup before/after

This app is slow, but you may not notice if working through a VPN.

If a destination file already exists, it will be skipped.

If your settings refuse to open a file type, it will be skipped.

Binary Version (custom managed atom).

FromFolder	P:\Mission Systems\Sensors IPT\Acoustics\ASW 101
OneFile
ToFolder	C:\Users\charles.booth\Downloads\asw101
Add front date.
No front date.

FileSystemObject Version (windows managed atom)

FromFolder	O:\reviewdocs
OneFile	4130_Waiver_ 2666.pdf
ToFolder	C:\Users\charles.booth\Downloads\N_Pub\rvwdoc
No front date.

DiscoverLive Show whats new in a folder. The report will be a folder filled with dummy files. You can delete from the dummies and then fetch the real ones matching the remaining dummies. This model is the least work for you but the slowest to rerun. File name and file size are used. File date is useless because it changes for too many reasons.

Old path	E:\A_product\data\DTC
New path	D:\dtc
Copy path	D:\dtc_nz
New not in Old	Match name exactly. Size very close?
New not in Old	Match name without ISO date or ext-x.
New not in Old	Match name by lcase ab.
scary New not in Old	Match name by a-trace.

Deleted List, Added List

You must have index files ready.

2 index files from the same directory. One old version and one new version

The 2 versions will be compared. You will get 2 reports

DelOld.txt shows what was deleted since the old directory.

AddNew shows what was added up to the new directory.

Index build utilities are further below.

OLD path\indexfile Must be Path and FileName of indexfile	D:\T\Tbd\2019_NavGap\2019_0705_NavGap_e\LogProcess\old.txt
NEW path\indexfile Must be Path and FileName of indexfile	D:\T\Tbd\2019_NavGap\2019_0705_NavGap_e\LogProcess\new.txt
See DelOld.txt and AddNew.txt

Make DOS DIR command make off-line. Paste in terminal. run on-line

Sometimes getting a DOS DIR works best. Sometimes you have to hand enter it.

This macro will make the command for you to copy and paste.

The command provided works if there are spaces in the path.

If you step in VB, you will see the programatic syntax to build paths with spaces.

A quick search on the internet will show claims that DIR does not work with path spaces. It works.

This method is not subatomic. If the connection drops, this stops with no warning. Check the answer when it says its done.

DirRead folder	P:\CSI
DirWrite folder	C:\Users\charles.booth\Downloads
file DirName	2019_1011_CSI.txt
DirCommand	dir "P:\CSI\" /s >"C:\Users\charles.booth\Downloads\2019_1011_CSI.txt"

Convert Dir to Index Off-line

DirWrite folder	D:\T\Tbd\2019_NavGap\2019_0705_NavGap_e\LogProcess
DirName file	2017_0606_Deliverables.txt
file IndexName	new.txt
DirWrite/DirName to DirWrite/IndexName

Get Index On-Line

This version of index is sub atomic.

It records progress to drive and has a restart.

It should survive any network or hardware closure and pick up where it left off.

DirRead folder	D:\T\ToFix\0mso95
DirWrite folder	D:\T\Tool
directly to IndexName	Old.txt

Syncronize On-Line

Copy folder will be made to look like the Original. Files in Copy but not Original will be put in Trash.

Original folder	D:\T\ToFix\0mso95
Copy folder	D:\T\Tool
Trash folder	D:\T\Tool

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Start Of License

This is free and unencumbered software released into the public domain.

Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial, and by any means.

In jurisdictions that recognize copyright laws, the author or authors of this software dedicate any and all copyright interest in the software to the public domain. We make this dedication for the benefit of the public at large and to the detriment of our heirs and successors. We intend this dedication to be an overt act of relinquishment in perpetuity of all present and future rights to this software under copyright law.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

End Of License

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Planned Changes

Add a skip option when a file fails

upon fail, wait for operator, maybe close file and reopen

text copy to