Already exist exception

Greetings of the day…
I had given a task where I should get a character as an input from the user and I should search with that char in a specified folder for the files that are starting with the given char and move those files in another folder.

I am done with all but I need to create a new folder with the name of user input and move the file that matches with user-input I am using the function
destinationPath+letter+""+files
Where destination path is the path the folder to be created and the letter is a variable that stores the user input which should be the name of the folder and files is the file name that is renamed
I am doing it in move activity but I am getting an error that path does not exist how to overcome this

Thanks
Soumiya

1 Like

Hi @soumi_soumiya

Can you share what is the value of destinationPath, letter, and files?

Thanks!
Despi

2 Likes

Hi
Fine
— initially create a folder first with
CREATE DIRECTORY activity and mention as
DestinationPath+”\”+letter
— now use a move file activity and mention the file name along with the path in the destination property
DestinationPath+”\”+letter+”\”+Filename

Cheers

destinationPath="C:\Users\Soumiya\Desktop"
letter=d
files=draft.pdf

1 Like

Hope this would help you
Cheers @soumi_soumiya

how to create cant get you

thanks for ur reply

It works thanks

1 Like

Fantastic
Cheers @soumi_soumiya

1 Like

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