# SalQuickFTP

Namespace: **PPJ.Runtime.Windows.QO**

Assembly: **PPJ.Runtime.49** (4.9.0.0)

FTP Control.

{% tabs %}
{% tab title="C#" %}

```csharp
public class SalQuickFTP : SalCustomControl
```

{% endtab %}

{% tab title="VB.NET" %}

```visual-basic
Public Class SalQuickFTP
    Inherits SalCustomControl
```

{% endtab %}
{% endtabs %}

## Constructors

### ![](https://299326270-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7qefdGDqaAibSgFIaGI0%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)SalQuickFTP()

Default Constructor.

## Properties

### ![](https://299326270-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7qefdGDqaAibSgFIaGI0%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)AppName

[String](https://docs.microsoft.com/en-us/dotnet/api/system.string): invalid (Default: `""`)

### ![](https://299326270-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7qefdGDqaAibSgFIaGI0%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)FtpClient

[SalFtpClient](https://desktop-api.iceteagroup.com/ppj.runtime.49/internet/ppj.runtime.windows.qo.salquickftp): Returns the single instance of the FTP client. It is created when it's needed.

### ![](https://299326270-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7qefdGDqaAibSgFIaGI0%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)Password

[String](https://docs.microsoft.com/en-us/dotnet/api/system.string): (Default: `""`)

### ![](https://299326270-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7qefdGDqaAibSgFIaGI0%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)ServerName

[String](https://docs.microsoft.com/en-us/dotnet/api/system.string): invalid (Default: `""`)

### ![](https://299326270-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7qefdGDqaAibSgFIaGI0%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)ServerPort

[Int32](https://docs.microsoft.com/en-us/dotnet/api/system.int32): invalid (Default: `21`)

### ![](https://299326270-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7qefdGDqaAibSgFIaGI0%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)UserName

[String](https://docs.microsoft.com/en-us/dotnet/api/system.string): invalid (Default: `""`)

### ![](https://299326270-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7qefdGDqaAibSgFIaGI0%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)WindowsClassName

[String](https://docs.microsoft.com/en-us/dotnet/api/system.string): invalid (Default: `""`)

### ![](https://299326270-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7qefdGDqaAibSgFIaGI0%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)WindowsDLLName

[String](https://docs.microsoft.com/en-us/dotnet/api/system.string): invalid (Default: `""`)

### ![](https://299326270-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7qefdGDqaAibSgFIaGI0%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)WindowsExStyle

[Int32](https://docs.microsoft.com/en-us/dotnet/api/system.int32): invalid (Default: `0`)

### ![](https://299326270-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7qefdGDqaAibSgFIaGI0%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)WindowsStyle

[Int32](https://docs.microsoft.com/en-us/dotnet/api/system.int32): invalid (Default: `0`)

## Methods

### ![](https://299326270-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7qefdGDqaAibSgFIaGI0%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)CloseFile(hFile)

Closes an open file.

| Parameter | Type                                                                                                        | Description |
| --------- | ----------------------------------------------------------------------------------------------------------- | ----------- |
| **hFile** | [SalNumber](https://desktop-api.iceteagroup.com/ppj.runtime.49/internet/ppj.runtime.windows.qo.salquickftp) |             |

**Returns:** [SalNumber](https://desktop-api.iceteagroup.com/ppj.runtime.49/internet/ppj.runtime.windows.qo.salquickftp).

### ![](https://299326270-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7qefdGDqaAibSgFIaGI0%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)Connect(sServerName, nServerPort, sUserName, sPassword)

Establish communication with an FTP server under the user and password specified. If the user name is null, the anonymous user is connected.

| Parameter       | Type                                                                                                        | Description |
| --------------- | ----------------------------------------------------------------------------------------------------------- | ----------- |
| **sServerName** | [SalString](https://desktop-api.iceteagroup.com/ppj.runtime.49/internet/ppj.runtime.windows.qo.salquickftp) |             |
| **nServerPort** | [SalNumber](https://desktop-api.iceteagroup.com/ppj.runtime.49/internet/ppj.runtime.windows.qo.salquickftp) |             |
| **sUserName**   | [SalString](https://desktop-api.iceteagroup.com/ppj.runtime.49/internet/ppj.runtime.windows.qo.salquickftp) |             |
| **sPassword**   | [SalString](https://desktop-api.iceteagroup.com/ppj.runtime.49/internet/ppj.runtime.windows.qo.salquickftp) |             |

**Returns:** [SalNumber](https://desktop-api.iceteagroup.com/ppj.runtime.49/internet/ppj.runtime.windows.qo.salquickftp).

### ![](https://299326270-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7qefdGDqaAibSgFIaGI0%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)CreateDirectory(sDirectory)

Creates a directory on the FTP server.

| Parameter      | Type                                                                                                        | Description |
| -------------- | ----------------------------------------------------------------------------------------------------------- | ----------- |
| **sDirectory** | [SalString](https://desktop-api.iceteagroup.com/ppj.runtime.49/internet/ppj.runtime.windows.qo.salquickftp) |             |

**Returns:** [SalNumber](https://desktop-api.iceteagroup.com/ppj.runtime.49/internet/ppj.runtime.windows.qo.salquickftp).

### ![](https://299326270-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7qefdGDqaAibSgFIaGI0%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)DeleteFile(sRemoteFile)

Deletes the specified file on the FTP server.

| Parameter       | Type                                                                                                        | Description |
| --------------- | ----------------------------------------------------------------------------------------------------------- | ----------- |
| **sRemoteFile** | [SalString](https://desktop-api.iceteagroup.com/ppj.runtime.49/internet/ppj.runtime.windows.qo.salquickftp) |             |

**Returns:** [SalNumber](https://desktop-api.iceteagroup.com/ppj.runtime.49/internet/ppj.runtime.windows.qo.salquickftp).

### ![](https://299326270-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7qefdGDqaAibSgFIaGI0%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)Disconnect()

Disconnects the current connection.

**Returns:** [SalNumber](https://desktop-api.iceteagroup.com/ppj.runtime.49/internet/ppj.runtime.windows.qo.salquickftp).

### ![](https://299326270-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7qefdGDqaAibSgFIaGI0%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)EnumDirectories(sSearch, sDirs)

Obtain an array of directory names based on a search path specified.

| Parameter   | Type                                                                                                                   | Description |
| ----------- | ---------------------------------------------------------------------------------------------------------------------- | ----------- |
| **sSearch** | [SalString](https://desktop-api.iceteagroup.com/ppj.runtime.49/internet/ppj.runtime.windows.qo.salquickftp)            |             |
| **sDirs**   | [SalArray\<SalString>](https://desktop-api.iceteagroup.com/ppj.runtime.49/internet/ppj.runtime.windows.qo.salquickftp) |             |

**Returns:** [SalNumber](https://desktop-api.iceteagroup.com/ppj.runtime.49/internet/ppj.runtime.windows.qo.salquickftp).

### ![](https://299326270-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7qefdGDqaAibSgFIaGI0%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)EnumFiles(sSearchFile, saFileNames)

| Parameter       | Type                                                                                                           | Description |
| --------------- | -------------------------------------------------------------------------------------------------------------- | ----------- |
| **sSearchFile** | [SalString](https://desktop-api.iceteagroup.com/ppj.runtime.49/internet/ppj.runtime.windows.qo.salquickftp)    |             |
| **saFileNames** | [SalArray\`1&](https://desktop-api.iceteagroup.com/ppj.runtime.49/internet/ppj.runtime.windows.qo.salquickftp) |             |

**Returns:** [SalNumber](https://desktop-api.iceteagroup.com/ppj.runtime.49/internet/ppj.runtime.windows.qo.salquickftp).

### ![](https://299326270-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7qefdGDqaAibSgFIaGI0%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)EnumFilesInfo(sSearchFile, saFileNames, naAttributes, dtaCreationTimes, dtaLastAccessTimes, dtaLastWriteTimes, naFileSizes)

Obtain an array of file names and all related file information based on a search path specified.

| Parameter              | Type                                                                                                                     | Description |
| ---------------------- | ------------------------------------------------------------------------------------------------------------------------ | ----------- |
| **sSearchFile**        | [SalString](https://desktop-api.iceteagroup.com/ppj.runtime.49/internet/ppj.runtime.windows.qo.salquickftp)              |             |
| **saFileNames**        | [SalArray\<SalString>](https://desktop-api.iceteagroup.com/ppj.runtime.49/internet/ppj.runtime.windows.qo.salquickftp)   |             |
| **naAttributes**       | [SalArray\<SalNumber>](https://desktop-api.iceteagroup.com/ppj.runtime.49/internet/ppj.runtime.windows.qo.salquickftp)   |             |
| **dtaCreationTimes**   | [SalArray\<SalDateTime>](https://desktop-api.iceteagroup.com/ppj.runtime.49/internet/ppj.runtime.windows.qo.salquickftp) |             |
| **dtaLastAccessTimes** | [SalArray\<SalDateTime>](https://desktop-api.iceteagroup.com/ppj.runtime.49/internet/ppj.runtime.windows.qo.salquickftp) |             |
| **dtaLastWriteTimes**  | [SalArray\<SalDateTime>](https://desktop-api.iceteagroup.com/ppj.runtime.49/internet/ppj.runtime.windows.qo.salquickftp) |             |
| **naFileSizes**        | [SalArray\<SalNumber>](https://desktop-api.iceteagroup.com/ppj.runtime.49/internet/ppj.runtime.windows.qo.salquickftp)   |             |

**Returns:** [SalNumber](https://desktop-api.iceteagroup.com/ppj.runtime.49/internet/ppj.runtime.windows.qo.salquickftp).

### ![](https://299326270-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7qefdGDqaAibSgFIaGI0%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)FindFirstFile(sSearchFile, sFileName)

| Parameter       | Type                                                                                                         | Description |
| --------------- | ------------------------------------------------------------------------------------------------------------ | ----------- |
| **sSearchFile** | [SalString](https://desktop-api.iceteagroup.com/ppj.runtime.49/internet/ppj.runtime.windows.qo.salquickftp)  |             |
| **sFileName**   | [SalString&](https://desktop-api.iceteagroup.com/ppj.runtime.49/internet/ppj.runtime.windows.qo.salquickftp) |             |

**Returns:** [SalNumber](https://desktop-api.iceteagroup.com/ppj.runtime.49/internet/ppj.runtime.windows.qo.salquickftp).

### ![](https://299326270-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7qefdGDqaAibSgFIaGI0%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)FindFirstFileInfo(sSearchFile, sFileName, nAttributes, dtCreationTime, dtLastAccessTime, dtLastWriteTime, nFileSize)

| Parameter            | Type                                                                                                           | Description |
| -------------------- | -------------------------------------------------------------------------------------------------------------- | ----------- |
| **sSearchFile**      | [SalString](https://desktop-api.iceteagroup.com/ppj.runtime.49/internet/ppj.runtime.windows.qo.salquickftp)    |             |
| **sFileName**        | [SalString&](https://desktop-api.iceteagroup.com/ppj.runtime.49/internet/ppj.runtime.windows.qo.salquickftp)   |             |
| **nAttributes**      | [SalNumber&](https://desktop-api.iceteagroup.com/ppj.runtime.49/internet/ppj.runtime.windows.qo.salquickftp)   |             |
| **dtCreationTime**   | [SalDateTime&](https://desktop-api.iceteagroup.com/ppj.runtime.49/internet/ppj.runtime.windows.qo.salquickftp) |             |
| **dtLastAccessTime** | [SalDateTime&](https://desktop-api.iceteagroup.com/ppj.runtime.49/internet/ppj.runtime.windows.qo.salquickftp) |             |
| **dtLastWriteTime**  | [SalDateTime&](https://desktop-api.iceteagroup.com/ppj.runtime.49/internet/ppj.runtime.windows.qo.salquickftp) |             |
| **nFileSize**        | [SalNumber&](https://desktop-api.iceteagroup.com/ppj.runtime.49/internet/ppj.runtime.windows.qo.salquickftp)   |             |

**Returns:** [SalNumber](https://desktop-api.iceteagroup.com/ppj.runtime.49/internet/ppj.runtime.windows.qo.salquickftp).

### ![](https://299326270-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7qefdGDqaAibSgFIaGI0%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)FindNextFile(sFileName)

| Parameter     | Type                                                                                                         | Description |
| ------------- | ------------------------------------------------------------------------------------------------------------ | ----------- |
| **sFileName** | [SalString&](https://desktop-api.iceteagroup.com/ppj.runtime.49/internet/ppj.runtime.windows.qo.salquickftp) |             |

**Returns:** [SalNumber](https://desktop-api.iceteagroup.com/ppj.runtime.49/internet/ppj.runtime.windows.qo.salquickftp).

### ![](https://299326270-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7qefdGDqaAibSgFIaGI0%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)FindNextFileInfo(sFileName, nAttributes, dtCreationTime, dtLastAccessTime, dtLastWriteTime, nFileSize)

| Parameter            | Type                                                                                                           | Description |
| -------------------- | -------------------------------------------------------------------------------------------------------------- | ----------- |
| **sFileName**        | [SalString&](https://desktop-api.iceteagroup.com/ppj.runtime.49/internet/ppj.runtime.windows.qo.salquickftp)   |             |
| **nAttributes**      | [SalNumber&](https://desktop-api.iceteagroup.com/ppj.runtime.49/internet/ppj.runtime.windows.qo.salquickftp)   |             |
| **dtCreationTime**   | [SalDateTime&](https://desktop-api.iceteagroup.com/ppj.runtime.49/internet/ppj.runtime.windows.qo.salquickftp) |             |
| **dtLastAccessTime** | [SalDateTime&](https://desktop-api.iceteagroup.com/ppj.runtime.49/internet/ppj.runtime.windows.qo.salquickftp) |             |
| **dtLastWriteTime**  | [SalDateTime&](https://desktop-api.iceteagroup.com/ppj.runtime.49/internet/ppj.runtime.windows.qo.salquickftp) |             |
| **nFileSize**        | [SalNumber&](https://desktop-api.iceteagroup.com/ppj.runtime.49/internet/ppj.runtime.windows.qo.salquickftp)   |             |

**Returns:** [SalNumber](https://desktop-api.iceteagroup.com/ppj.runtime.49/internet/ppj.runtime.windows.qo.salquickftp).

### ![](https://299326270-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7qefdGDqaAibSgFIaGI0%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)GetCurrentDirectory(sDirectory)

| Parameter      | Type                                                                                                         | Description |
| -------------- | ------------------------------------------------------------------------------------------------------------ | ----------- |
| **sDirectory** | [SalString&](https://desktop-api.iceteagroup.com/ppj.runtime.49/internet/ppj.runtime.windows.qo.salquickftp) |             |

**Returns:** [SalNumber](https://desktop-api.iceteagroup.com/ppj.runtime.49/internet/ppj.runtime.windows.qo.salquickftp).

### ![](https://299326270-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7qefdGDqaAibSgFIaGI0%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)GetFile(sRemoteFile, sLocalFile, bTransferBinary, nContext)

Copies a file from an FTP server to the local machine. If nContext is greater than zero, an asynchronous process is started and status messages are send to the window. The nContext argument uniquely identifies the asynchronous process and is passed into the status messages in wParam.

| Parameter           | Type                                                                                                         | Description |
| ------------------- | ------------------------------------------------------------------------------------------------------------ | ----------- |
| **sRemoteFile**     | [SalString](https://desktop-api.iceteagroup.com/ppj.runtime.49/internet/ppj.runtime.windows.qo.salquickftp)  |             |
| **sLocalFile**      | [SalString](https://desktop-api.iceteagroup.com/ppj.runtime.49/internet/ppj.runtime.windows.qo.salquickftp)  |             |
| **bTransferBinary** | [SalBoolean](https://desktop-api.iceteagroup.com/ppj.runtime.49/internet/ppj.runtime.windows.qo.salquickftp) |             |
| **nContext**        | [SalNumber](https://desktop-api.iceteagroup.com/ppj.runtime.49/internet/ppj.runtime.windows.qo.salquickftp)  |             |

**Returns:** [SalNumber](https://desktop-api.iceteagroup.com/ppj.runtime.49/internet/ppj.runtime.windows.qo.salquickftp).

### ![](https://299326270-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7qefdGDqaAibSgFIaGI0%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)GetLastErrorCode()

Returns the code of the last error that was handled by the class.

**Returns:** [SalNumber](https://desktop-api.iceteagroup.com/ppj.runtime.49/internet/ppj.runtime.windows.qo.salquickftp).

### ![](https://299326270-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7qefdGDqaAibSgFIaGI0%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)GetLastErrorMessage()

Returns the message of the last error that was handled by the class.

**Returns:** [SalString](https://desktop-api.iceteagroup.com/ppj.runtime.49/internet/ppj.runtime.windows.qo.salquickftp).

### ![](https://299326270-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7qefdGDqaAibSgFIaGI0%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)OpenFile(sRemoteFile, nFlags, bFlags)

Opens a file on an FTP server.

| Parameter       | Type                                                                                                         | Description |
| --------------- | ------------------------------------------------------------------------------------------------------------ | ----------- |
| **sRemoteFile** | [SalString](https://desktop-api.iceteagroup.com/ppj.runtime.49/internet/ppj.runtime.windows.qo.salquickftp)  |             |
| **nFlags**      | [SalNumber](https://desktop-api.iceteagroup.com/ppj.runtime.49/internet/ppj.runtime.windows.qo.salquickftp)  |             |
| **bFlags**      | [SalBoolean](https://desktop-api.iceteagroup.com/ppj.runtime.49/internet/ppj.runtime.windows.qo.salquickftp) |             |

**Returns:** [SalNumber](https://desktop-api.iceteagroup.com/ppj.runtime.49/internet/ppj.runtime.windows.qo.salquickftp).

### ![](https://299326270-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7qefdGDqaAibSgFIaGI0%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)PutFile(sLocalFile, sRemoteFile, bBinaryTransfer, nContext)

Copies a file from a local machine to an FTP server. If nContext is greater than zero, an asynchronous process is started and status messages are sent to the window. The nContext argument uniquely identifies the asynchronous process and is passed into the status messages through wParam.

| Parameter           | Type                                                                                                         | Description |
| ------------------- | ------------------------------------------------------------------------------------------------------------ | ----------- |
| **sLocalFile**      | [SalString](https://desktop-api.iceteagroup.com/ppj.runtime.49/internet/ppj.runtime.windows.qo.salquickftp)  |             |
| **sRemoteFile**     | [SalString](https://desktop-api.iceteagroup.com/ppj.runtime.49/internet/ppj.runtime.windows.qo.salquickftp)  |             |
| **bBinaryTransfer** | [SalBoolean](https://desktop-api.iceteagroup.com/ppj.runtime.49/internet/ppj.runtime.windows.qo.salquickftp) |             |
| **nContext**        | [SalNumber](https://desktop-api.iceteagroup.com/ppj.runtime.49/internet/ppj.runtime.windows.qo.salquickftp)  |             |

**Returns:** [SalNumber](https://desktop-api.iceteagroup.com/ppj.runtime.49/internet/ppj.runtime.windows.qo.salquickftp).

### ![](https://299326270-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7qefdGDqaAibSgFIaGI0%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)ReadFile(hFile, sBuffer, nBufferSize)

| Parameter       | Type                                                                                                         | Description |
| --------------- | ------------------------------------------------------------------------------------------------------------ | ----------- |
| **hFile**       | [SalNumber](https://desktop-api.iceteagroup.com/ppj.runtime.49/internet/ppj.runtime.windows.qo.salquickftp)  |             |
| **sBuffer**     | [SalString&](https://desktop-api.iceteagroup.com/ppj.runtime.49/internet/ppj.runtime.windows.qo.salquickftp) |             |
| **nBufferSize** | [SalNumber](https://desktop-api.iceteagroup.com/ppj.runtime.49/internet/ppj.runtime.windows.qo.salquickftp)  |             |

**Returns:** [SalNumber](https://desktop-api.iceteagroup.com/ppj.runtime.49/internet/ppj.runtime.windows.qo.salquickftp).

### ![](https://299326270-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7qefdGDqaAibSgFIaGI0%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)RemoveDirectory(sDirectory)

Delete a specified directory on an FTP server.

| Parameter      | Type                                                                                                        | Description |
| -------------- | ----------------------------------------------------------------------------------------------------------- | ----------- |
| **sDirectory** | [SalString](https://desktop-api.iceteagroup.com/ppj.runtime.49/internet/ppj.runtime.windows.qo.salquickftp) |             |

**Returns:** [SalNumber](https://desktop-api.iceteagroup.com/ppj.runtime.49/internet/ppj.runtime.windows.qo.salquickftp).

### ![](https://299326270-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7qefdGDqaAibSgFIaGI0%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)RenameFile(sOldRemoteFile, sNewRemoteFile)

Rename a file on an FTP server.

| Parameter          | Type                                                                                                        | Description |
| ------------------ | ----------------------------------------------------------------------------------------------------------- | ----------- |
| **sOldRemoteFile** | [SalString](https://desktop-api.iceteagroup.com/ppj.runtime.49/internet/ppj.runtime.windows.qo.salquickftp) |             |
| **sNewRemoteFile** | [SalString](https://desktop-api.iceteagroup.com/ppj.runtime.49/internet/ppj.runtime.windows.qo.salquickftp) |             |

**Returns:** [SalNumber](https://desktop-api.iceteagroup.com/ppj.runtime.49/internet/ppj.runtime.windows.qo.salquickftp).

### ![](https://299326270-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7qefdGDqaAibSgFIaGI0%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)SetCurrentDirectory(sDirectory)

Changes to a different working directory on an FTP server.

| Parameter      | Type                                                                                                        | Description |
| -------------- | ----------------------------------------------------------------------------------------------------------- | ----------- |
| **sDirectory** | [SalString](https://desktop-api.iceteagroup.com/ppj.runtime.49/internet/ppj.runtime.windows.qo.salquickftp) |             |

**Returns:** [SalNumber](https://desktop-api.iceteagroup.com/ppj.runtime.49/internet/ppj.runtime.windows.qo.salquickftp).

### ![](https://299326270-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7qefdGDqaAibSgFIaGI0%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)WriteFile(hFile, sBuffer, nBufferSize)

Writes information to an open file on an FTP server.

| Parameter       | Type                                                                                                        | Description |
| --------------- | ----------------------------------------------------------------------------------------------------------- | ----------- |
| **hFile**       | [SalNumber](https://desktop-api.iceteagroup.com/ppj.runtime.49/internet/ppj.runtime.windows.qo.salquickftp) |             |
| **sBuffer**     | [SalString](https://desktop-api.iceteagroup.com/ppj.runtime.49/internet/ppj.runtime.windows.qo.salquickftp) |             |
| **nBufferSize** | [SalNumber](https://desktop-api.iceteagroup.com/ppj.runtime.49/internet/ppj.runtime.windows.qo.salquickftp) |             |

**Returns:** [SalNumber](https://desktop-api.iceteagroup.com/ppj.runtime.49/internet/ppj.runtime.windows.qo.salquickftp).

## Implements

| Name                                                                                                         | Description                                                                        |
| ------------------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------- |
| [ISalWindow](https://desktop-api.iceteagroup.com/ppj.runtime.49/internet/ppj.runtime.windows.qo.salquickftp) | All Sal windows (Child windows, Forms, Dialogs and MDIs) implement this interface. |
