TLDR: Use for...of instead of forEach() in asynchronous code.
For legacy browsers, use for(...;...;...) or [].reduce()
To execute the promises in parallel, use Promise.all([].map(...))
| Function CS_SAVE_SELECTED_ATTACHED_TABLES(void) | |
| /* | |
| Usage: | |
| Run routine To parse the list of attached tables that meet the specified | |
| criteria In FilterByUNCPrefix and save the list | |
| To an OS file In a form that is suitable For copying And pasting into | |
| source code For re-attaching the same list of tables. | |
| */ | |
| *Location to save the generated list of attached tables |