Move files to a folder with dynamic variable

Hello all,

I need to create each day a new folder with the date:

Assign activity: Today = DateTime.Now.ToString(“dd-MM-yyyy”)

Create folder activity: “V:\ADMINISTRACION\contabilidad\CONC.BANCOS\RPA\Histórico\AV” + Today

The problem is that every day I need to move files to the “Today folder” and I use move file activity:

From: “V:\ADMINISTRACION\contabilidad\CONC.BANCOS\RPA\Histórico\AV\FileName.xls”

To: “V:\ADMINISTRACION\contabilidad\CONC.BANCOS\RPA\Histórico\AV” + Hoy + “FileName.xls”

Problem: image

I would want the excel file 21-09-2020 inside the folder 21-09-2020.

How can I do it?

Many thanks :slight_smile:

“V:\ADMINISTRACION\contabilidad\CONC.BANCOS\RPA\Histórico\AV\” + Today+”\“FileName.xls”

2 Likes

Many thanks! It worked! :slight_smile:

Most welcome :smiley:

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.