Connection
Purpose: |
Open a connection to the local file system. This action establishes an off-screen connection to the local file system. To display a visible Windows Explorer style File Browser, use the fmShowFileBrowser action. |
||
Category: |
Connection |
||
Syntax: |
fmConnectLocal "connection id" "properties" connection id A name that you want to use to refer to this connection in the future. This cannot be left blank. properties This is a compound parameter and can contain any combination of the following items:
|
||
Example: |
The following example opens a local file system and navigates to the "C:\Windows" folder: fmConnectLocal "Local1" "InitialPath=C:\Windows" |
Purpose: |
Open a connection to a remote FTP server. This action establishes an off-screen connection to the FTP server. To display a visible Windows Explorer style File Browser, use the fmShowFileBrowser action. Note: The fmConnectRemote action can also be used to reestablish a connection unexpectedly closed by a server. When used to reconnect, the host and properties fields are ignored. |
||||||||||||||||
Category: |
Connection |
||||||||||||||||
Syntax: |
fmConnectRemote "connection id" "host" "properties" connection id A name that you want to use to refer to this connection in the future. This cannot be left blank. host The IP address or host name for the remote FTP server. properties This is a compound parameter and can contain any combination of the following items:
Separate multiple items in a compound parameter with semicolons (;). |
||||||||||||||||
Example: |
The following example connects to a FTP server at the fictional www.mywebsite.com and navigates to the "/webspace/httpdocs" folder: fmConnectRemote "Remote1" "ftp.mywebsite.com" "User=admin;Password=fjx4mhc2;Port=21;InitialPath=/webspace/httpdocs" |
Purpose: |
Close a previously opened FTP server or local file system connection. Calling fmDisconnect is optional since any connections that are open when a publication is shutdown will be closed automatically. |
Category: |
Connection |
Syntax: |
fmDisconnect "connection id" connection id The name assigned to the connection you want to close. |
Example: |
fmDisconnect "Remote1" |