"Delete original file" in Command Executor not working

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

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

Post by emcodem »

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/
emcodem, wrapping since 2009 you got the rhyme?
momocampo
Posts: 595
Joined: Thu Jun 08, 2017 12:36 pm
Location: France-Paris

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

Post by momocampo »

Very interesting, thank you.
I learned something again.

;)
Post Reply