Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
9.3
9.4
9.5
10.0
10.1
10.2
10.3
10.4
10.5
10.6
Statistic
FMM
Blog
CURL.SetBatchDestinationPath
Sets the destination path for batch downloads.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| CURL | 7.0 | Yes | Yes | Yes | Yes | Yes |
Parameters
| Parameter | Description | Example |
|---|---|---|
| curl | The CURL session handle. | $curl |
| Path | The path to destination folder. | "/Users/cs/Desktop/" |
Result
Returns OK or error.
Description
Sets the destination path for batch downloads.See also CURL.SetOptionWildCardMatch.
This function requires a native path. Use Path.FileMakerPathToNativePath to convert a FileMaker path to a native path if required. If you like to have the user choose the path, you can use FileDialog functions.
For Server be aware that server has limited permissions and may not be able to access all files on a computer.
Examples
Download several files via FTP:
Set Variable [$curl; Value:MBS("CURL.New")]
#Set URL with wildcard match
Set Variable [$result; Value:MBS("CURL.SetOptionURL"; $curl; CURL Test::URL)]
#Set folder where to put files
Set Variable [$result; Value:MBS("CURL.SetBatchDestinationPath"; $curl; CURL Test::DestPath)]
#credentials...
Set Variable [$result; Value:MBS("CURL.SetOptionPassword"; $curl; CURL Test::Password)]
Set Variable [$result; Value:MBS("CURL.SetOptionUserName"; $curl; CURL Test::Name)]
#enable wildcard match
Set Variable [$result; Value:MBS("CURL.SetOptionWildCardMatch"; $curl; 1)]
#download them all
Set Field [CURL Test::Result; MBS("CURL.Perform"; $curl)]
#check results
Set Field [CURL Test::debug; MBS("CURL.GetDebugAsText"; $curl)]
Set Field [CURL Test::FileNames; MBS("CURL.GetBatchFileNames"; $curl)]
Set Variable [$result; Value:MBS("CURL.Release"; $curl)]
See also
- CURL.GetBatchDestinationPath
- CURL.GetBatchFileNames
- CURL.GetDebugAsText
- CURL.New
- CURL.Release
- CURL.SetOptionPassword
- CURL.SetOptionURL
- CURL.SetOptionUserName
- CURL.SetOptionWildCardMatch
- Path.FileMakerPathToNativePath
Example Databases
Blog Entries
Release notes
- Version 7.0
- Added functions for batch download of files over FTP: CURL.GetBatchCurrentFileName, CURL.GetBatchCurrentFilePath, CURL.GetBatchDestinationPath, CURL.GetBatchFileNames and CURL.SetBatchDestinationPath.
Created 19th December 2016, last changed 19th April 2020
CURL.SendText - CURL.SetDebugWithData
Feedback: Report problem or ask question.
Links
MBS Xojo PDF Plugins