Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
module:addfiles [2021/04/17 00:22] – [Invoke] Updated usage syntax/help output digital man | module:addfiles [2023/03/05 14:18] (current) – [Examples] Add example that includes dir-code, listfile, and desc-off. digital man | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Add Files ====== | ====== Add Files ====== | ||
- | New for Synchronet v3.19, this JavaScript utility script replaces the functionality of the old ADDFILES program. | + | New for Synchronet v3.19, this JavaScript utility script replaces the functionality of the old [[util:ADDFILES]] program. |
This script can import files into one or more filebases either using input filename/ | This script can import files into one or more filebases either using input filename/ | ||
Line 8: | Line 8: | ||
===== Invoke ====== | ===== Invoke ====== | ||
Run with [[util: | Run with [[util: | ||
- | jsexec addfiles.js | + | jsexec addfiles |
< | < | ||
- | usage: [-options] [dir-code] [listfile] | + | usage: [-options] [dir-code] [listfile] [desc-off] |
options: | options: | ||
-all add files in all libraries/ | -all add files in all libraries/ | ||
-lib=< | -lib=< | ||
+ | -auto add files only to directories that have Auto-ADDFILES enabled | ||
-from=< | -from=< | ||
+ | -file=< | ||
-ex=< | -ex=< | ||
(default: FILES.BBS, | (default: FILES.BBS, | ||
Line 27: | Line 29: | ||
-v increase verbosity of output | -v increase verbosity of output | ||
-debug | -debug | ||
+ | optional: | ||
+ | dir-code: | ||
+ | listfile: | ||
+ | desc-off: | ||
</ | </ | ||
Line 42: | Line 48: | ||
jsexec addfiles -lib=main FILES.BBS | jsexec addfiles -lib=main FILES.BBS | ||
| | ||
+ | * To add files/ | ||
+ | jsexec addfiles graphics FILES.BBS 40 | ||
===== See Also ===== | ===== See Also ===== | ||
* [[: | * [[: |