取得檔案狀態Get File Status

重要

此版本的 Orchestrator 已達終止支援,建議您 升級至 Orchestrator 2019This version of Orchestrator has reached the end of support, we recommend you to upgrade to Orchestrator 2019.

「取得檔案狀態」活動會使用 UNC 路徑確認檔案存在於本機檔案系統或網路位置。The Get File Status activity verifies that a file exists on the local file system or a network location using a UNC path. 您可以先檢查檔案是否可用,然後再複製到另一個位置,或在啟動相依于檔案是否存在的任何服務之前。You can check that a file is available before copying to another location or before starting any services that depend on the existence of the file. 如果檔案不存在,您可以使用 [ 複製 檔案] 活動來採取更正動作,以從另一個位置複製檔案。If the file does not exist, you can take corrective action using the Copy File activity to copy the file from another location.

設定取得檔案狀態活動Configuring the Get File Status Activity

設定「取得檔案狀態」活動之前,您必須先決定要檢查的檔案名和路徑名稱。Before you configure the Get File Status activity, you need to determine the file name and path name you are checking.

您可以使用下列資訊來設定「取得檔案狀態」活動。Use the following information to configure the Get File Status activity.

[詳細資料] 索引標籤Details Tab

設定Settings 組態指示Configuration Instructions
檔案File 輸入您要檢查其狀態的檔案名和路徑,或按一下省略號 ** ( ... ) ** 按鈕,然後流覽至該檔案。Type the name and path of the file that you are checking the status of, or click the ellipsis (...) button and browse for it.
包含子資料夾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.
檔案存留期File age Select 小於等於 指定較舊或較新的檔案,分別是您指定的天數。Select Is less than or Is more than to specify the files that are older or newer, respectively, than the number of days that you specify.
days 輸入您將用於檔案 存留期 量值的天數。Type the number of days that you will use with the File age measure.

已發佈資料Published Data

下表列出已發佈的資料項目。The following table lists the published data items.

ItemItem 描述Description
建立檔案的日期和時間Date and time the file was created 建立檔案的本機日期和時間。The local date and time on which the file was created.
建立檔案的 UTC 日期和時間UTC date and time the file was created 建立檔案的 UTC 日期和時間。The UTC date and time on which the file was created.
檔案存留期天數File age days 提供用來評估檔案存在時間的天數。The number of days that was provided to evaluate the file age.
修改日期選項Modified date option 選取此選項,以根據日期範圍來搜尋檔案。The option that was selected to search for files according to a date range.
檔案存在File exists 指出檔案是否存在。Indicates whether the file exists or not.
副檔名File name extension 檔案的副檔名,或檔案類型。The extension, or file type, of the file.
檔案資料夾File folder 檔案所在的資料夾。The folder that the file was found in.
檔案名稱File name 檔案的名稱。The name of the file.
檔案擁有者File owner 檔案擁有者的名稱。The name of the owner of the file.
檔案大小 (位元組) File size (bytes) 以位元組為單位的檔案大小。The size of the file in bytes.
來源檔案的名稱和路徑Name and path of the origin file 提供的檔案名和路徑。The file name and path that was provided.
上次存取日期和時間Last accessed date and time 以當地語系化格式建立檔案的日期和時間。The date and time on which the file was created in localized format.
上次存取的 UTC 日期和時間Last accessed UTC date and time 建立檔案的日期和時間,以 UTC 格式表示。The date and time on which the file was created in UTC format.
上次修改日期和時間Last modified date and time 以當地語系化格式建立檔案的日期和時間。The date and time on which the file was created in localized format.
上次修改的 UTC 日期和時間Last modified UTC date and time 建立檔案的日期和時間,以 UTC 格式表示。The date and time on which the file was created in UTC format.
包含子資料夾Include sub-folders 指出是否已選取 [包含子資料夾] 核取方塊。Indicates whether the Include sub-folders check box was selected.
檔案路徑File path 來源的檔案名和路徑。The source file name and path.
僅) 編碼類型 (文字檔Encoding type (text files only) 檔案所使用的檔案編碼格式(如果檔案為文字檔)。The file encoding format used by the file, if the file is a text file.