Stata 15 help for copysource
[P] copysource -- Copy source code to current directory
copysource searches for filename along the adopath and, if it is found,
copies it to the current (working) directory.
copysource is much like viewsource, but rather than displaying the file
in the Viewer, copysource copies the file to the current directory.