複製檔案Copy File
重要
此版本的 Orchestrator 已達終止支援,建議您 升級至 Orchestrator 2019。This version of Orchestrator has reached the end of support, we recommend you to upgrade to Orchestrator 2019.
[複製檔案] 活動會將檔案從一個目錄複寫到另一個目錄。The Copy File activity copies a file from one directory to another. 您也可以將檔案複製到可使用 UNC 路徑使用的網路共用。You can also copy files to network shares that are available using UNC paths. 使用 [複製檔案] 活動,將在 [監視資料夾] 活動所監視的資料夾中建立或修改的重要檔案複製到備份位置。Use the Copy File activity to copy important files that have been created or modified in a folder that is being monitored by the Monitor Folder activity to a backup location.
設定檔案活動Configuring the Copy File Activity
設定 [複製檔案] 活動之前,您必須知道要複製的檔案,以及要放置複本的目的地路徑。Before you configure the Copy File activity, you need to know which files you are copying and the destination path where you will put the copies.
您可以使用下列資訊來設定 [複製檔案] 活動。Use the following information to configure the Copy File activity.
[詳細資料] 索引標籤Details Tab
設定Settings | 組態指示Configuration Instructions |
---|---|
檔案File | 輸入您想要複製之檔案的路徑和名稱。Type the path and name of the file that you want to copy. 您可以使用 * 和?You can use the * and ? 萬用字元來指定檔案名或路徑。wildcards to specify the file name or path. 這些萬用字元的行為方式與在 Windows 命令提示字元中的行為相同。These wildcards behave the same way as in the Windows Command Prompt. |
包含子資料夾Include sub-folders | 選取此選項以複製您所指定路徑之子資料夾中的任何檔案,以符合您指定的檔案名。Select this option to copy any files within the sub-folders of the path you have specified that match the filename that you have specified. |
資料夾Folder | 輸入您想要將檔案複製到其中的資料夾路徑。Type the path of the folder where you want the files to be copied to. |
如果目的地存在If the destination exists | 如果目的地資料夾中已經有相同名稱的檔案存在,請選取您想要採取的動作:Select the action that you want to take if a file with the same name already exists in the destination folder: 覆寫:選取此選項可使用正在複製的檔案來覆寫現有的檔案。Overwrite: Select this option to overwrite the existing file with the file that is being copied. 失敗:如果檔案名已存在,請選取此選項,使複製檔案活動失敗。Fail: Select this option to cause the Copy File activity to fail if the filename already exists. 建立具有唯一名稱 的檔案:選取此選項可將值附加至檔案名,以建立不會與現有名稱衝突的唯一名稱。Create a file with a unique name: Select this option to append a value to the filename to create a unique name that does not conflict with an existing name. |
進階索引標籤Advanced Tab
設定Settings | 組態指示Configuration Instructions |
---|---|
檔案存留期File age | 指定 小於 或 等於 複製較舊或較新的檔案,而不是您指定的天數。Specify Is less than or Is more than to copy the files that are older or newer, respectively, than the number of days that you specify. |
天days | 輸入您將用於檔案 存留期 量值的 天數。Enter the number of days that you will use with the File age measure. |
傳送日期Date of transfer | 將目的地的檔案名設定為複製到資料夾的日期。Set the date of the file at the destination to the date when it was copied to the folder. |
與原始的相同Same as original | 將目的地的檔案日期設定為原始檔案的日期。Set the date of the file at the destination to the date of the original file. |
已發佈資料Published Data
下表列出已發佈的資料項目。The following table lists the published data items.
ItemItem | 描述Description |
---|---|
原始檔案夾Origin folder | 複製檔案的基底資料夾路徑。The path of the base folder where the file was copied from. |
目的地資料夾Destination folder | 複製檔案的目的地資料夾。The destination folder where the file was copied to. |
要傳送的檔總數Total number of files to be transferred | 符合您指定之準則的檔案數目。The number of files that matched the criteria that you specified. |
成功檔案作業的數目Number of successful file operations | 已成功複製的檔案數目。The number of files that were successfully copied. |
失敗的檔案作業數目Number of failed file operations | 無法複製的檔案數目。The number of files that failed to copy. |
檔案作業狀態File operation status | 判斷複製是否成功或失敗。Determines whether the copy succeeded or failed. |
檔案路徑File path | 複製之檔案的路徑。The path of the file that was copied. |
檔案名稱File name | 所複製的檔案名。The name of the file that was copied. |
相對於來源資料夾的檔案名和路徑Name and path of the file relative to the origin folder | 從源資料夾開始之檔案的相對路徑。The relative path of the file starting from the origin folder. |
如果目的地存在If destination exists | 如果目的地檔案已經存在,已選取要處理作業的選項。The option that was selected to handle the operation if the destination file already exists. |
檔案存留期日期選項File age date options | 選取用來評估檔案存在時間的選項。The option that was selected to evaluate the file age. |
檔案存留期天數File age days | 提供用來評估檔案存在時間的天數。The number of days that was provided to evaluate the file age. |
修改日期選項Modified date option | 針對要指派給目的地檔案的日期選取的選項。The option that was selected for the date to be assigned to the destination file. |
目的地檔案的名稱和路徑Name and path of the destination file | 將檔案複製到其中的名稱和路徑。The name and path that the file was copied to. |
來源檔案的名稱和路徑Name and path of the origin file | 檔案複製來源的名稱和路徑。The name and path that the file was copied from. |
包含子資料夾Include sub-folders | 指出是否已選取 [包含子資料夾] 核取方塊。Indicates whether the Include sub-folders check box was selected. |
原始檔案夾Origin folder | 複製檔案的基底資料夾路徑。The path of the base folder where the file was copied from. |
目的地資料夾Destination folder | 複製檔案的目的地資料夾。The destination folder where the file was copied to. |
要傳送的檔總數Total number of files to be transferred | 符合您指定之準則的檔案數目。The number of files that matched the criteria that you specified. |
成功檔案作業的數目Number of successful file operations | 已成功複製的檔案數目。The number of files that were successfully copied. |
失敗的檔案作業數目Number of failed file operations | 無法複製的檔案數目。The number of files that failed to copy. |
檔案作業狀態File operation status | 判斷複製是否成功或失敗。Determines whether the copy succeeded or failed. |
檔案路徑File path | 複製之檔案的路徑。The path of the file that was copied. |
檔案名稱File name | 所複製的檔案名。The name of the file that was copied. |
相對於來源資料夾的檔案名和路徑Name and path of the file relative to the origin folder | 從源資料夾開始之檔案的相對路徑。The relative path of the file starting from the origin folder. |
如果目的地存在If destination exists | 如果目的地檔案已經存在,已選取要處理作業的選項。The option that was selected to handle the operation if the destination file already exists. |
檔案存留期日期選項File age date options | 選取用來評估檔案存在時間的選項。The option that was selected to evaluate the file age. |
檔案存留期天數File age days | 提供用來評估檔案存在時間的天數。The number of days that was provided to evaluate the file age. |
修改日期選項Modified date option | 針對要指派給目的地檔案的日期選取的選項。The option that was selected for the date to be assigned to the destination file. |
目的地檔案的名稱和路徑Name and path of the destination file | 將檔案複製到其中的名稱和路徑。The name and path that the file was copied to. |
來源檔案的名稱和路徑Name and path of the origin file | 檔案複製來源的名稱和路徑。The name and path that the file was copied from. |
包含子資料夾Include sub-folders | 指出是否已選取 [包含子資料夾] 核取方塊。Indicates whether the Include sub-folders check box was selected. |