This question ha probably been asked before, but anyway.
I am working on a workflow and i am stuck at the point where i need to copy files from one folder to another.
The problem here is the path look like: C:\Users\Public\Documents*PastMeetingDate*\doc.xls.
The PastMeeting Date is user inputed variable.
The files need to be copied to: C:\Users\Public\Documents*NextMeetingDate*\doc.xls.
The NextMeetingDate is also a user inputed variable.
I have tried the copy file function, like " C:\Users\Public\Documents"&PastMeetingDate&“\doc.xls”
does not work because it cannot concatenate the path.
@pankaj.patil thanks for answering.
“PastMeetingDate” and “Next Meeting date” are 2 variables declared as string. These will be dependent on what the end user will input. Later in the workflow will be used to create a new folder based on the past meeting date with the new meeting date.
Hope this clarifies
So I completely understand, are all of the following are true?
The folder “PastMeetingDate” already exists.
The user inputs the “PastMeetingDate” - you would have to verify they input correct format as the folder and that the folder exists (assuming above is true)
The user inputs the “NextMeetingDate” for a future folder
You want to copy ALL files from “PastMeetingDate” to “NextMeetingDate”
@sreekanth I am not sure i understand? @balupad14 just to confirm what i understand from the screen shot,
create a new variable that holds the path to the folder on the past meeting. → question how is the variable be populated? user interaction or i can give: "C:\Users\Public\Documents"&PastMeetingDate&\
check if the folder location exists
then it checks if it has files in the folder
if yes then copy the file → question is there a condition there?
if not display “file does not exists”
→ will give it a try tomorrow at work