From: Dave H. <da...@ho...> - 2017-07-27 22:38:36
|
On Thu, 27 Jul 2017, sfeam via gnuplot-info wrote: > The issue is not the missing file per se, it's that apparently Windows > considers this sufficiently severe to return an error code from the > "dir" command. It isn't a problem on unix/linux, where "ls" will print > a warning message but returns success. So I imagine it would be > sufficient to wrap your "dir" command in a script MYDIR that always > returns success even if the real "dir" fails: Unix (FreeBSD): aneurin% ls fred ls: fred: No such file or directory aneurin% echo $? 1 Linux (Debian): dave@debbie:~$ ls fred ls: cannot access fred: No such file or directory dave@debbie:~$ echo $? 2 You were saying? -- Dave Horsfall DTM (VK2KFU) "Those who don't understand security will suffer." |