# 如何跳转到系统文件管理App界面

可以使用openLink的方式打开，在openLink接口的link字段中传入系统文件管理页面的URL信息，示例代码如下：

```
import { common, OpenLinkOptions } from '@kit.AbilityKit';
import { hilog } from '@kit.PerformanceAnalysisKit';
import { BusinessError } from '@kit.BasicServicesKit';

const TAG: string = '[UIAbilityComponentsOpenLink]';
const DOMAIN_NUMBER: number = 0xFF00;

@Entry
@Component
struct Index {
  @State message: string = '拉起文件管理';
  context = this.getUIContext();

  build() {
    Row() {
      Column() {
        Button(this.message)
          .width('100%')
          .fontWeight(FontWeight.Bold)
          .onClick(() => {
            let context: common.UIAbilityContext = this.context.getHostContext() as common.UIAbilityContext;
            let link: string = 'filemanager://openDirectory';
            let openLinkOptions: OpenLinkOptions = {
              parameters: {
                'fileUri': ''
              }
            };
            try {
              context.openLink(link, openLinkOptions)
                .then(() => {
                  hilog.info(DOMAIN_NUMBER, TAG, 'Open link success.');
                }).catch((err: BusinessError) => {
                hilog.error(DOMAIN_NUMBER, TAG, `Open link failed. Code is ${err.code}, message is ${err.message}`);
              });
            } catch (paramError) {
              hilog.error(DOMAIN_NUMBER, TAG,
                `Failed to start link. Code is ${paramError.code}, message is ${paramError.message}`);
            }
          })
      }
      .padding({ left: 16, right: 16 })
      .width('100%')
    }
    .height('100%')
  }
}
```

**参考链接：**

UIAbilityContext.openLink