Move file with variable name

I’m trying to do a Move file activity getting the in a for each loop, but I’m getting an error message.

I’m using the following as a path: “C:\Users\xxx\Desktop\test” + files.FullName

What shall I use instead to make this work?

Did you try converting the full path as variable and use the variable in Path property?

I tried to use a variable following your advice, but I get the same error. I can see the right path if I use a message box.

I have the variable set as String. Is this correct?

What is the error message?

The error is : The given path format is not supported

try this for fullpath


Thanks vvidya.

It worked with: path.Combine(Folder_Path, files.FullName)



When I use the move file , I am getting the following error:

Move file : The process cannot access the file because it is being used by another process.

Probably the file is open somewhere or used by other process and not disposed.

I found once that the process was trying to read team files being written in a watch folder and produced this type of error. I’ve resolved this by adding a delay before starting to read the files.

Hope this helps