IKScannerDevicePanel.SetDownloadsDirectory
------------------------------------------

Sets the download directory.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [ImageCapture](component_ImageCapture.md) | [6.5](newinversion65.md) | ✅ Yes | ❌ No | ❌ No | ❌ No | ❌ No |

MBS( "IKScannerDevicePanel.SetDownloadsDirectory"; Path ) 

**MBS**( **"IKScannerDevicePanel.SetDownloadsDirectory";** /\* Sets the download directory. \*/  
**$Path**) /\* The native path to the folder to store images. \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Path | The native path to the folder to store images. |  |

### Result

Returns OK or error.

### Description

Sets the download directory.  
Please make sure you can write to this folder.  
We recommend a temporary folder.  
  
This function requires a native path. Use [Path.FileMakerPathToNativePath](PathFileMakerPathToNativePath.md) 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](component_FileDialog.md) functions.  
### Examples

Scan to desktop folder:

 Set Variable \[$r ; Value:MBS ( "IKScannerDevicePanel.SetDownloadsDirectory"; MBS ("[Folders.UserDesktop](FoldersUserDesktop.md)") )\]  
Scan to downloads folder:

 MBS ( "IKScannerDevicePanel.SetDownloadsDirectory"; "/Users/cs/Downloads" )  
Scan to temporary folder:

 Set Variable \[$r ; Value:MBS ( "IKScannerDevicePanel.SetDownloadsDirectory"; MBS ("[Folders.UserTemporary](FoldersUserTemporary.md)") )\]  
### See also

- [Folders.UserDesktop](FoldersUserDesktop.md)
- [Folders.UserTemporary](FoldersUserTemporary.md)
- [IKScannerDevicePanel.GetDownloadsDirectory](IKScannerDevicePanelGetDownloadsDirectory.md)
- [IKScannerDevicePanel.Show](IKScannerDevicePanelShow.md)
- [Path.FileMakerPathToNativePath](PathFileMakerPathToNativePath.md)

### Example Databases

- [Mac only/ImageCapture/ImageCapture Dialogs](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Mac%20only/ImageCapture/ImageCapture%20Dialogs.shtml#2ScriptAnchor_)

This function is free to use.

Created 7th November 2016 , last changed 31st October 2023

  
[IKScannerDevicePanel.SetDocumentName](IKScannerDevicePanelSetDocumentName.md) - [IKScannerDevicePanel.SetHeight](IKScannerDevicePanelSetHeight.md)

[HTML Version](IKScannerDevicePanelSetDownloadsDirectory.shtml)