File Activities

Custom Activity

Custom Activity

Updated: October 19th, 2020

Published: November 9th, 2019

Downloads: 67

Language compatibility: Visual Basic

Community Support

File Activities

Custom Activity

Summary: 

This package contains a variety of activities that will help you easily manage files

The following activities are included in this pack:
Get FileName: used to extract the file name from the full path of the file.
  • Input: the full path of the file
  • Output: filename
Rename File: used to rename the file within a particular folder and provide the output as a Boolean value to confirm if the file was renamed or not.
  • Input
  • FilePath: the full path of the file
  • NewFileName: provide the new filename
  • Output
  • IsRenamed: A Boolean value that returns True if the file was renamed successfully and if not it will return False.
Move Files: used to move the files from source to the destination path. It can be used to move all files or only specific file types to the destination path.
Input:
  • TypeOfFiles: specify the type of file to be moved
  • (e.g. pdf or xlsx or docx)
  • Destination: destination path
Sort Files: Reads all the files from a specified folder, sort them based on several criteria and displayed the results either by descending or ascending order.
This component will read all the files from a specified folder and sort them based on CreationTime, LastAccessTime, LastWriteTime, Size, and Names.
Input:
  • FolderPath: the path of the files to be sorted.
  • SortingOrder: choose to sort the files in descending or ascending order.
  • SortingType: choose to sort the files by CreationTime, LastAccessTime,
  • LastWriteTime, Size or Name.
  • SortedFiles: an array of the sorted files.
HideFile: used to hide a particular file.
Input:
  • FilePath - the path of the file to be hidden.
Output:
  • IsHidden - indicates if the file was hidden or not.
  • Note: The field supports only Boolean variables.
UnhideFile: used to unhide the particular file.
  • Input: FilePath - the path of the file to be unhidden.
  • Output: IsUnhidden - indicates if the file was unhidden or not.
Note: The field supports only Boolean variables.

Details

Benefits

Retrieve the file name from file path easily.
Easily rename the file.
Move files from source to destination path and also we can move either all files or only specific files to the destination path.
Read all the files from a specified folder and sort them based on CreationTime, LastAccessTime, LastWriteTime, Size, and Names and will display the results in either Descending or Ascending order.
We can easily Hide/Unhide a specific file.

Compatibility

These activities are compatible with previous and current versions of UiPath Studio.

Dependencies

N/A

Resources

- File activities user manual.docx

Licensing

By clicking download you agree to the following license.