Uipath - 반복문으로 각각 폴더 만들기

parkje·2024년 4월 11일

RPA

목록 보기
13/24
post-thumbnail

반복문으로 폴더 만드는 방법


1. Config에 만들 폴더명 적어 놓기 (ex - mail, output,data 등


2.

folderArr 이라는 변수명 생성 (type :string array) = Config((create_folder).tostring).Split({","},stringsplitoptions.RemoveEmptyEntries)

해석 -> 해당 문자열을 쉼표(,)를 기준으로 분할하여 배열로 반환합니다.



3. 반복문으로 폴더 만들기


-FolderArr 가 0보다 크면 즉 하나라도 있다면 반복한다

-FolderArr 안에 mail, output,data 가 들어있고 이건 item으로

-FolderPath 생성 -> 반복문으로 만들어줄 폴더의 경로 + item.Trim

-NOT Directory.Exists(FolderPath) -> FolderPath 경로가 없다면 creat Folder로 지정해 준 폴더 생성

profile
RPA 개발 일지

0개의 댓글