Invoke Power Shell

I’m going to download the file using ‘Invoke power shell’. However, if a file does not exist, an error occurs and stops.
I’d like to have the error ignore it and download the next order of the file.
Is there a way?

10개의 파일을 다운로드 진행을 한다고 했을 때
중간에 없는 파일이 존재해서 에러가 나도
그것을 무시하고 끝까지 진행되도록 하고 싶어요

yeah you can use the try catch activity for that logic

i did try it… but, i don’t it…
help me, for example

@sumouse
Can you share your xaml file?
You should be able to simply wrap a Try/Catch around the download. If you are using a loop make sure that the Try/Catch isn’t around the entire loop, but just the individual download.

Use “Path Exist”.
image
Then and if
image

thanx, but It is not local path

예제)
{“a.b.c”, “abc”, “ab.c”}

나는 아래와 같이 Log Message가 출력되게 하고 싶습니다.
b
[blank]
c

하지마, 아래와 같이 실행중에 에러가 나서 더 이상 실행되지 않습니다.
b
Log Message: Index was outside the bounds of the array.

해결 방법이 있습니까?

테스트.xaml (6.7 KB)

Catches 에서 Exception에 System.Exception을 사용해보세요.
사용하신 OutOfMemoryException은 OutOfBoundException을 Catch하지 못해서 Split되지 못한 두 번째 String abc가 array가 생기지 못하면서 해당 에러가 발생하는것 같습니다.1

넵 감사합니다.