Page 1 of 1

[NoBug] SC run can't wait for non-exe files

Posted: 12 Jun 2016 14:06
by bdeshi
ruby.exe is in path.

Code: Select all

::run "ruby --version"; // runs ok
[u]::run "ruby --version",,1; // runs and waits correctly.
pdftk.bat is in path.

Code: Select all

::run "pdftk --version"; // runs ok.
::run "pdftk --version",,1; // does not run, saying can't find file.


content of pdftk.bat for reference:

Code: Select all

"path\to\pdftk\bin\pdftk.exe" %*
[/size]

Re: SC run can't wait for non-exe files

Posted: 13 Jun 2016 09:20
by admin
Tried with a BAT that does a DIR command, and it seems to work.

Re: SC run can't wait for non-exe files

Posted: 13 Jun 2016 15:51
by bdeshi
Hmm, my mistake. I noticed the problem first in pdftk, then tried qpdf with the same result, so thought it was a consistent bug.
Apparently pdftk and qpdf both do something different with console outputs. I should have tested more programs.


:ninja: anyway, maybe you could download qpdf (it's portable) when you have time, to see why it doesn't play nice with XY (or vice versa). I suppose there are many more programs that exhibit the same console writing behavior.