## MoveToFolder

### Introduced

v1.5

### Description

Moves an element into a folder. This can be used to move related clips into a common folder. You can use the CreateFolder command to add folders to organize elements.

### Scripting Syntax

    MoveToFolder( Target, [InputObjs] );

### Parameters

Parameter | Type | Description
--- | --- | ---
Target | String | Name of the folder you want to move the element to.
InputObjs | String | List of objects to move. Default Value: Current selection.

### Examples

#### VBScript Example

    dim clipFile
    clipFile = Application.InstallationPath( siFactoryPath ) & "\Data\XSI_SAMPLES\Pictures\bottom_teeth.jpg"
    const clipName = "MyClip"
    ' Create an image clip
    CreateImageClip clipFile, clipName
    ' Create a folder named MyBMP_Clips
    CreateFolder "Clips", "MyBMP_Clips"
    ' Move the clip under the new folder
    MoveToFolder "Clips.MyBMP_Clips", "Clips." & clipName

### See Also

CreateFolder RemoveFolder RemoveFromFolder