Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
module:addfiles [2021/04/04 04:37] – [Invoke] Add some examples digital man | module:addfiles [2024/12/05 01:11] (current) – Update the help output to match current script 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/ | ||
+ | |||
+ | If you just want to add a single file from the command-line, | ||
===== Invoke ====== | ===== Invoke ====== | ||
Run with [[util: | Run with [[util: | ||
- | jsexec addfiles.js | + | jsexec addfiles |
< | < | ||
- | usage: [-options] [dir-code] [listfile] | + | usage: [dir-spec] [-options] [listfile] |
+ | |||
+ | dir-spec: | ||
+ | -all Add files in all directories of all libraries (implies -auto) | ||
+ | -lib=< | ||
+ | -dir=< | ||
+ | | ||
+ | * indicates parameters that can be combined and/or specified multiple times | ||
+ | Note: If no directories are specified, one will be prompted for. | ||
options: | options: | ||
- | -all add files in all libraries/ | + | |
- | -lib=< | + | -from=< |
- | -from=< | + | |
- | -ex=< | + | |
- | (default: FILES.BBS, | + | (default: FILES.BBS, |
- | -diz | + | -diz |
- | -update | + | -update |
- | -date[=fmt] | + | |
- | -fdate[=fmt] | + | |
- | -adate[=fmt] | + | -fdate[=fmt] |
- | (fmt = optional strftime date/time format string) | + | -adate[=fmt] |
- | -v | + | (fmt = optional strftime date/time format string) |
- | -debug | + | |
- | </ | + | |
+ | -debug | ||
- | If no options or directories are specified, the sysop will be prompted for a directory to add files to. | + | optional listfile parameters: |
+ | | ||
+ | | ||
+ | </ | ||
==== Examples ==== | ==== Examples ==== | ||
Line 39: | Line 54: | ||
jsexec addfiles -lib=main FILES.BBS | jsexec addfiles -lib=main FILES.BBS | ||
| | ||
+ | * To add files/ | ||
+ | jsexec addfiles graphics FILES.BBS 40 | ||
+ | |||
+ | * To add files to a specific directory (// | ||
+ | jsexec addfiles graphics -diz | ||
===== See Also ===== | ===== See Also ===== | ||
* [[: | * [[: |