大网数据广告活动
磁盘与文件系统

Create a Custom File Management Task

· 52CE 我爱测

This article describes how to create a custom file management task and custom tasks.

Expiration is not always a desired action to be performed on files. File management tasks allow you to run custom commands as well.

Note: This procedure assumes that you are familiar with file management tasks, and therefore only covers the Action tab where custom settings are configured.

To create a custom task

  1. Click the File Management Tasks node.

  2. Right-click File Management Tasks, and then click Create File Management Task (or click Create File Management Task in the Actions pane). This opens the Create File Management Task dialog box.

  3. On the Action tab, enter the following information:

    • Type. Select Custom from the drop-down menu.
    • Executable. Type or browse to a command to run when the file management task processes files. This executable must be set to be writable by Administrators and System only. If any other users have write access to the executable, it will not run correctly.
    • Command settings. To configure the arguments passed to the executable when a file management job processes files, edit the text box labeled Arguments. To insert additional variables in the text, place the cursor in the location in the text box where you want to insert the variable, select the variable that you want to insert, and then click Insert Variable. The text that is in brackets inserts variable information that the executable can receive. For example, the [Source File Path] variable inserts the name of the file that should be processed by the executable. Optionally, click the Working directory button to specify the location of the custom executable.
    • Command Security. Configure the security settings for this executable. By default, the command is run as Local Service, which is the most restrictive account available.
  4. Click OK.

Additional References

Source: Microsoft Learn / Windows Server documentation by Microsoft and contributors (upstream author metadata: robinharwood). Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / Windows Server documentation
适用范围
Windows Server · Source date 7/7/2017
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。