Doonline
(Doonlinejob23)
February 4, 2022, 2:59am
1
Hii,
I have a directory from where i want to move the folder
but where in want to move the folder is present in a same directory
Like for example
C://RPA/Document
In this above path i have a 2 folders
but i want these 2 folders should be inside one folder lets say "Input"which i will be created during the process only .And the path of the newly created folder is shown below
C://RPA/Document
.So,the destination path of the moved folder should be
C://RPA/Document/Input
But i m getting “Move folder Exception”
Please Help
Hi @Doonline
Please find below link for your reference
Use below method, please note destination folder should not exist
[image]
Happy learning
Doonline
(Doonlinejob23)
February 4, 2022, 3:08am
5
If destination folder would not exist then how i ll move
Hi @Doonline you should have a folder check condition before moving the file to ensure that folder is present if not create a new folder
You can use Path Exists activity to find a folder/File exists or not. The activity will return an boolean value
Doonline
(Doonlinejob23)
February 4, 2022, 3:14am
7
Folder check condition will be after invoke?
No before invoke @Doonline
Have that path exist check first and if the folder exist
Move to next activity invoke
Else create a folder and then move to invoke
Doonline
(Doonlinejob23)
February 4, 2022, 3:24am
9
Which path should exist?
The destination path or the source path?
@Doonline destination path because that is what you feel won’t be present right
Basically check for your input folder
If present then move it inside document folder
Else create a folder called input first and then move it inside to document folder
Doonline
(Doonlinejob23)
February 4, 2022, 3:31am
11
“The process cannot access the file because it is being used by another process.”
Can you try in other drives ( D or E)
Doonline
(Doonlinejob23)
February 4, 2022, 3:37am
13
No i cant.My whole project is in same drive only
@Soumya587 Check this Workflow:
There are two Folders SourceFolder which contains Files and DestinationFolder where another Folder needs to be Created and Files from SourceFolder needs to be copied to this.
What the Workflow does is :
Creates the Destination Folder with new Folder Name
Gets the Files From Source Folder one by one and moves it into the Destination Folder Created.
Deletes the SourceFolder
In this way Moving the Folder with Files can be achieved, This is one way I Implemented,…
This is one more sample try downloading the xaml in your system