This "CHT Batch Bot", HNDSLFCMD.EXE is a command-line HTTP tool which can send to, fetch and erase files from any standard CHT HTTP/HTTPS site managed by a Type 4 CHT Server such as HNDSLFSV.APP. A password and username are required for access to the server. Communications in both directions are encrypted. HNDSLFCMD.EXE can be called from one of your Clarion applications, from a Windows batch file or from a Windows .VBS script to provide reliable file upload, download and delete services. HNDSLFCMD.EXE source code, because it is in Clarion .APP format, is included as a standard part of the CHT toolkit, provided both in .APP format as well as ready-to-run, in .EXE format. CONFIGURATION COMMANDS: --config0 to --config9 [CFG] Set up HTTP/HTTPS configuration information #0 to #9 SET COMMANDS: "Set" commands may be combined with --send, --fetch or --erase. --set0 to --set9 [CFG] Select and use configuration #0 to #9 --set [CFG] Manually inserted url and port, ignore config settings. E.G. --set https://www.yoursite.org:88/ --userpass [CFG] Manually inserted user and password E.G. --userpass username:userpass ACTION COMMANDS --send [REQ] Provides file name of the local file to be uploaded. Use with --local to name the local pickup directory. Use with --remote to name the remote target directory. Multiple files may be listed, separated by commas. --fetch [OPT] File name of a remote file to be downloaded. Use instead of --send or --erase for downloading files. Use with --local to name the local target directory. Use with --remote to name the remote pickup directory. Multipe files may be listed, separated by commas. --erase [OPT] Provides file to be erased from a remote server. Use instead of --fetch and --send when deleting. Use with --remote to name the remote directory. File names are separated by commas. SOURCE/TARGET COMMANDS: --remote OPT] Remote directory with which to interact. Remote directory below server /root/ directory. Example usage: subdir1/subdir2/ Defaults to the server /root/ directory if omitted. --local [OPT] Names a local directory to indicate --send pickup directory or to indicate --fetch target path. Defaults to the application path if omitted. HELP COMMANDS: --help [OPT] Pops up a splash help screen. Creates .TXT file showing these instructions. LOGGING: All successful transactions and/or errors are logged into "hndslfcmd.log" located in the same directory as the hndslfcmd.exe. |
PROCEDURE (1): MainProc (Procedure Template: HandySourceProcedure) |
|||||
Count | Instance | Class | Type | Methods | Header File |
(0001) | ENC | HNDEncrypt | HNDINET | 151 | HNDENCRP.INC |
(0002) | HTTP | HNDHttp | HNDINET | 229 | HNDHTTP.INC |
(2) Class Instances Found In MainProc | |||||
PROCEDURE (2): JumpStartSplashCHTBlue (Procedure Template: Splash) |
|||||
Count | Instance | Class | Type | Methods | Header File |
(0001) | HTellMe | HNDWindow | HND | 206 | HNDWINDO.INC |
(0002) | HWin | HNDWindow | HND | 206 | HNDWINDO.INC |
(0003) | Toolbar | ToolbarClass | ABC | 6 | ABTOOLBA.INC |
(0004) | ThisWindow | WindowManager | ABC | 40 | ABWINDOW.INC |
(4) Class Instances Found In JumpStartSplashCHTBlue | |||||