"Delete original file" in Command Executor not working

Questions and answers on how to get the most out of FFAStrans
emcodem
Posts: 445
Joined: Wed Sep 19, 2018 8:11 am

Re: "Delete original file" in Command Executor not working

Post by emcodem » Wed Nov 27, 2019 9:41 am

Yeah the thinking is absolutely correct, it has to do with the exit code.
In fact, the windows "del" command basically always exits with exit code 0 (which means success). It would only exit with bad exit code in case you provided wrong commandline parameters or so.
To workaround, one could use another program than "del" to delete files, e.g. "rm" from the unix tools for windows: http://unxutils.sourceforge.net/

momocampo
Posts: 387
Joined: Thu Jun 08, 2017 12:36 pm
Location: France-Paris

Re: "Delete original file" in Command Executor not working

Post by momocampo » Wed Nov 27, 2019 10:49 am

Very interesting, thank you.
I learned something again.

;)

Post Reply