GPT catch function error

Hello,

is there an easy way to catch the gpt function execution status in a batch-type setting in windows?

I’m trying to process a big amount of S1 scenes and I would like to know afterwards if there was a problem with specific files.

I already tried to check the ERRORLEVEL variable, but for some reason it doesn’t seem to reliably reflect the exit status.

Thanks,

Val

Hi Val,

actually the ERRORLEVEL should work. You say it is not reliable. Which cases work and which don’t? Which operators are you using.? Maybe there is some problem in our code?

Hello Marco,

I have to admit I didn’t test it extensively.

What I tried was rather simple. I had a couple of S1 files which included at least one corrupt zip file. Using a loop I read each file with gpt Read and echoed the ERRORLEVEL code afterwards. And after multiple times I could’t reliably sort out the corrupt files.

I didn’t want to spend too much time on it so I only used the one operator.

Best,

Val