Unique File Name move

I am trying to to move a file from one folder to another. I save the attachment from an email to a folder. The file is an .xlsx (and the only file in that folder) and the name of the file has a date on it that changes each time.

After saving the attachment, i use an assign to get the file with directory.getfiles(“my path”,“*.xlsx”)

I then do a For Each with the input being the list created by the assign to loop through to get the file. I put a move file in the for each but it doesn’t move the file. I’m not sure where I am going wrong or what to do differently to get it to move into a different folder.

Hi @atarantino

in the for loop did you change the type argument to string

cheers

Yes I did.

Hi @atarantino

Please share xaml or screenshots on what you are doing.that will give more idea

cheers

Main.xaml (10.2 KB)

thanks

Hi @atarantino,

You almost there,

We not able to pass Absolute path like following “D:,C: or E:”

Try to pass your value via variable like below

image

thanks,
Rajkumar

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