Skip to content
Menu

Free tutorial

Lesson 8 - File Handling

Our new client JHK Shipping needs a robot, that can sort files and create a log.

Anders Jensen Automation & AI Instructor

Intro

Our new client JHK Shipping needs a robot, that can sort files and create a log.

What you will learn

  • Primarily
    • File Handling with For Each, the .net method Directory.Getfiles and the Move File activity
  • Secondarily:
    • Make a variable index counter
    • Variable use best practice
    • Create folders with the Create Folder activity
    • Use of the .net method String.EndsWith
    • Write a log message with information

Client name

JHK Shipping

Process Name

Sort Files

Description

Create a UiPath robot that:

  • Create the two folders, "xlsx" and "docx"
  • Move the .xlsx- and .docx-files to their respective folders
  • Write a log message with a count of how many files, that are moved in total and of each type

Files:
SortFiles.Zip

More tutorials

  • Lesson 1 - Install and Setup UiPath and Orchestrator

    Before you start working for our clients, you need to install UiPath and connect it to Orchestrator.

    Read more →
  • Lesson 10 - The Next Steps

    Additional lessons and discussions with more than 5000 UiPath Developers: Join the Facebook Group -- Follow me on:

    Read more →
  • Lesson 4 - If/While

    EA Sports called your office. They want you to design their next game.

    Read more →

Comments (5)

These comments were migrated from the previous version of this site. Commenting is closed.

  1. Raj

    Hi Anders, I don't have access to the above link with name Sort Files.zip. Is this one different from what you made me download as course material?

    1. Anders Jensen Author

      Hey Raj. Thanks a lot for pointing that out - I'm sorry. The link is updated now and works Kind regards, Anders

  2. AP

    Hi Anders, There seems to be no files present inside the zip folder.Kindly have a look.

    1. Anders Jensen Author

      Hey AP. Sorry, I've updated the files Let me know if you still have the problem. Kind regards, Anders

  3. Mohamed

    Hi Anders, the sort file is empty.