File Processing
Purpose: |
Select all files and/or folders in the current directory. |
||||
Category: |
File Processing |
||||
Syntax: |
fmSelectAll "connection id" "options" connection id The name assigned to the connection you want to affect. The connection must have already been opened with fmConnectLocal or fmConnectRemote. options This is a compound parameter and can contain any combination of the following items:
Separate multiple items in a compound parameter with semicolons (;). |
||||
Example: |
fmSelectAll "Local1" "IncludeFiles=Yes;IncludeFolders=No" |
Purpose: |
Select specific files and/or folders in the current directory by name or mask. |
||||||
Category: |
File Processing |
||||||
Syntax: |
fmSelectSome "connection id" "items" "options" connection id The name assigned to the connection you want to affect. The connection must have already been opened with fmConnectLocal or fmConnectRemote. items A list of items to be selected. The list may contain actual file names or file masks with wildcard characters (?, *). Multiple items should be separated with semicolons (;). options This is a compound parameter and can contain any combination of the following items:
Separate multiple items in a compound parameter with semicolons (;). |
||||||
Example: |
fmSelectSome "Local1" "*2010.doc;*.xls" "IncludeFiles=Yes;IncludeFolders=No; ScrollIntoView=Yes" |
Purpose: |
Select one file in the current directory that matches a specific name or mask. This action is similar to fmSelectSome, except that only one file among those matching the mask will be selected. The file selected is based on the direction parameter (first, next, prev, last) and the currently selected items (if any). |
||||||||||||||
Category: |
File Processing |
||||||||||||||
Syntax: |
fmSelectOne "connection id" "items" "direction" "options" connection id The name assigned to the connection you want to affect. The connection must have already been opened with fmConnectLocal or fmConnectRemote. items A list of items to be selected. The list may contain actual file names or file masks with wildcard characters (?, *). Multiple items should be separated with semicolons (;). direction The direction used to determine which item should be selected. This can be one of the following:
options This is a compound parameter and can contain any combination of the following items:
Separate multiple items in a compound parameter with semicolons (;). |
||||||||||||||
Example: |
fmSelectOne "Local1" "*2010.doc;*.xls" "Next" "IncludeFiles=Yes; IncludeFolders=No;ScrollIntoView=yes" |
Purpose: |
Invert the current selection. Selected items will become unselected and unselected items will become selected. |
||||
Category: |
File Processing |
||||
Syntax: |
fmInvertSelection "connection id" "options" connection id The name assigned to the connection you want to affect. The connection must have already been opened with fmConnectLocal or fmConnectRemote. options This is a compound parameter and can contain any combination of the following items:
Separate multiple items in a compound parameter with semicolons (;). |
||||
Example: |
fmInvertSelection "Local1" "IncludeFiles=Yes;IncludeFolders=No" |
Purpose: |
Clear the current selection. |
||||
Category: |
File Processing |
||||
Syntax: |
fmUnselectAll "connection id" "options" connection id The name assigned to the connection you want to affect. The connection must have already been opened with fmConnectLocal or fmConnectRemote. options This is a compound parameter and can contain any combination of the following items:
Separate multiple items in a compound parameter with semicolons (;). |
||||
Example: |
fmUnselectAll "Local1" "IncludeFiles=Yes;IncludeFolders=Yes" |
Purpose: |
Copy selected items from one connection to another. Items (files and folders) may be selected programmatically using the fmSelectAll or fmSelectSome actions, or interactively by the user if a visible File Browser has been created for the connection. The visible File Browser also allows users to initiate a file copy by dragging and dropping files between browsers and other applications. The fmCopySelected action can be used if you want to initiate a file copy programmatically from a Push Button or without interaction from the user. Note: When copying files to or from a remote connection via FTP you can set the default file transfer mode using the fmSetDefaultTransferMode action. |
||||||
Category: |
File Processing |
||||||
Syntax: |
fmCopySelected "source connection id" "target connection id" "options" source connection id The name assigned to the connection containing the selected files or folders you want to copy. The connection must have already been opened with fmConnectLocal or fmConnectRemote. target connection id The name assigned to the connection you want to copy the selected files or folders to. The connection must have already been opened with fmConnectLocal or fmConnectRemote. options This is a compound parameter and can contain any combination of the following items:
Separate multiple items in a compound parameter with semicolons (;). |
||||||
Example: |
fmCopySelected "Local1" "Remote1" "GetConfirmation=Yes;ShowProgress=Yes" |
Purpose: |
Move selected items from one connection to another. Items (files and folders) may be selected programmatically using the fmSelectAll or fmSelectSome actions, or interactively by the user if a visible File Browser has been created for the connection. The visible File Browser also allows users to initiate a file move by dragging and dropping files between browsers and other applications. The fmMoveSelected action can be used if you want to initiate a file move programmatically from a Push Button or without interaction from the user. IMPORTANT: Moving of files is not supported for remote/FTP connections. If either the source or target are remote connections, fmMoveSelected will copy the files instead. |
||||
Category: |
File Processing |
||||
Syntax: |
fmMoveSelected "source connection id" "target connection id" "options" source connection id The name assigned to the connection containing the selected files or folders you want to move. The connection must have already been opened with fmConnectLocal. target connection id The name assigned to the connection you want to move the selected files or folders to. The connection must have already been opened with fmConnectLocal. options This is a compound parameter and can contain any combination of the following items:
Separate multiple items in a compound parameter with semicolons (;). |
||||
Example: |
fmMoveSelected "Local1" "Local2" "GetConfirmation=No;ShowProgress=Yes" |
Purpose: |
Permanently delete selected items from a connection. Items (files and folders) may be selected programmatically using the fmSelectAll or fmSelectSome actions, or interactively by the user if a visible File Browser has been created for the connection. Note: The Delete action cannot be undone, so use it with caution. If you need a more forgiving way to remove files and folders, use the fmRecycleSelected action instead. |
||||
Category: |
File Processing |
||||
Syntax: |
fmDeleteSelected "connection id" "options" connection id The name assigned to the connection containing the selected files or folders you want to delete. The connection must have already been opened with fmConnectLocal or fmConnectRemote. options This is a compound parameter and can contain any combination of the following items:
Separate multiple items in a compound parameter with semicolons (;). |
||||
Example: |
fmDeleteSelected "Local1" "GetConfirmation=Yes;ShowProgress=Yes" |
Purpose: |
Move selected items from a connection to the Windows recycle bin. Items (files and folders) may be selected programmatically using the fmSelectAll or fmSelectSome actions, or interactively by the user if a visible File Browser has been created for the connection. Note: Recycling of files is not supported for remote/FTP connections. |
||||
Category: |
File Processing |
||||
Syntax: |
fmRecycleSelected "connection id" "options" connection id The name assigned to the connection containing the selected files or folders you want to recycle. The connection must have already been opened with fmConnectLocal. options This is a compound parameter and can contain any combination of the following items:
Separate multiple items in a compound parameter with semicolons (;). |
||||
Example: |
fmRecycleSelected "Local1" "GetConfirmation=Yes;ShowProgress=Yes" |
Purpose: |
Rename selected items in a connection. Items (files and folders) may be selected programmatically using the fmSelectAll or fmSelectSome actions, or interactively by the user if a visible File Browser has been created for the connection. |
||
Category: |
File Processing |
||
Syntax: |
fmRenameSelected "connection id" "new name mask" "options" connection id The name assigned to the connection containing the selected files or folders you want to rename. The connection must have already been opened with fmConnectLocal or fmConnectRemote. new name mask A mask that defines what the items' new names will look like. You can use wildcards (* and ?) as part of the name. The characters represented by the wildcards will be identical to the corresponding characters in the item's original name. For example, the following will change the extensions of all files in the list to .txt while leaving the base file names intact: "*.txt" options This is a compound parameter and can contain any combination of the following items:
Separate multiple items in a compound parameter with semicolons (;). |
||
Example: |
fmRenameSelected "Local1" "*.txt" "ShowProgress=Yes" |
Purpose: |
Create a new folder. |
Category: |
File Processing |
Syntax: |
fmCreateFolder "connection id" "folder name" connection id The name assigned to the connection where you want to create the new folder. The connection must have already been opened with fmConnectLocal or fmConnectRemote. folder name The name for the new folder. If the name does not include a path, then the folder will be created in the connection's current directory |
Example: |
Create a folder called "My Projects" in the current directory: fmCreateFolder "Local1" "My Projects" Create a folder called "2010" in the user's Documents folder: fmCreateFolder "Local1" "[MyDocuments]2010" |
Purpose: |
Get the size, type, date, time, attributes or permissions for all selected items. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Category: |
File Processing |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Syntax: |
fmGetSelectedInfo "connection id" "info type" "info format" "variable" connection id The name assigned to the connection containing the selected files or folders. The connection must have already been opened with fmConnectLocal or fmConnectRemote. info type The type of information you want to retrieve. Use one of the following types:
info format The formatting to be used for the retrieved information. The format depends on the info type selected above. Valid formats for each info type are:
variable The name of the variable where the retrieved information will be stored. If multiple items are selected, the information will be separated by the global delimiter. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Example: |
fmGetSelectedInfo "Local1" "Date" "m/d/yy" "[FileDates]" |
Purpose: |
Set the date, time, attributes or permissions for all selected items. |
||||||||||||||||||||||||||
Category: |
File Processing |
||||||||||||||||||||||||||
Syntax: |
fmSetSelectedInfo "connection id" "info type" "date format" "new value" connection id The name assigned to the connection containing the selected files or folders. The connection must have already been opened with fmConnectLocal or fmConnectRemote. info type The type of information you want to set. Use one of the following types:
date format The formatting to be used when setting the item's date stamp. This is the format of the date passed in the value parameter. The date format may be one of the following:
This parameter is ignored when setting attributes or permissions. new value The new date/time or attributes/permissions to be applied to the selected items. The value depends of the info type selected above.
|
||||||||||||||||||||||||||
Example: |
fmSetSelectedInfo "Local1" "DateTime" "m/d/yy" "1/15/2011 3:45pm" |
Purpose: |
Copy a list of file and/or folder names to a variable. |
||||||||
Category: |
File Processing |
||||||||
Syntax: |
fmFileListToVar "connection id" "options" "variable" connection id The name assigned to the connection containing the list of files/folders that you want to store in a variable. The connection must have already been opened with fmConnectLocal or fmConnectRemote. options This is a compound parameter and can contain any combination of the following items:
Separate multiple items in a compound parameter with semicolons (;). variable The name of the variable where the list of items will be stored. If multiple items are selected, sizes will be separated by the global delimiter. |
||||||||
Example: |
fmFileListToVar "FileList1" "FullPath=Yes;IncludeFiles=Yes; IncludeFolders=Yes;SelectedOnly=Yes" "[Files]" |