On Mon, Jul 6, 2026 at 12:26 PM tom ehlert via Freedos-devel
<[email protected]> wrote:
>
> Hallo Herr perditionc--- via Freedos-devel,
>
> am Mittwoch, 1. Juli 2026 um 23:44 schrieben Sie:
>
> > On Wed, Jul 1, 2026 at 12:29 PM Jim Hall via Freedos-devel <
> > [email protected]> wrote:
>
> >> Excellent, thanks! I also mirrored this to the download.freedos.org
> >> server, and updated the note on the "Download" page.
> >> https://www.freedos.org/download/
> >>
> >> :: *Help test the next FreeDOS distribution!* This version includes
> >> :: an updated kernel and other tools. Please test it out and report
> >> :: a bug if you have problems. <Download FreeDOS T2607> (July 2026)
> >>
> >> ...
>
>
> > I am interested in any reports of programs that do not work [doesn't start,
> > crashes, certain functionality misbehaves, etc]
>
> command.com
>
> IF EXIST Z:NUL echo drive Z: exists
>
> which is essential to test for loaded network/ram drives has been non 
> functional fo ~15 years
>

FYI, this is a kernel issue, not a FreeCOM (command.com) issue. I can
reproduce the problem by writing a trivial C program to open a "file"
and report if it can be opened as a file.

Here's a sample using FreeCOM:

C:\>dir F:
File not found. - 'F:'
C:\>if exist C:NUL echo C: is there
C: is there
C:\>if exist F:NUL echo F: is there
F: is there


And the trivial C program:

D:\SRC>type tst.c
#include <stdio.h>

int main(int argc, char **argv)
{
    int i;
    FILE *p;

    for (i=0; i<argc; i++) {
        p = fopen(argv[i], "rb");

        fputs(argv[i], stdout);
        if (p==NULL) {
            puts(": file not there?");
        }
        else {
            puts(": file is there");
            fclose(p);
        }
    }

    return 0;
}

This also intentionally tests itself, because the program binary
should always exist. :-)

If I compile the program using Open Watcom C (tst-w.exe) or Borland
Turbo C/C++ (tst-t.exe) then I get these results:

D:\SRC>tst-w C:\fdauto.bat F:NUL F:CON C:\NOFILE
D:\SRC\TST-W.EXE: file is there
C:\fdauto.bat: file is there
F:NUL: file is there
F:CON: file is there
C:\NOFILE: file not there?

D:\SRC>tst-t C:\fdauto.bat F:NUL F:CON C:\NOFILE
D:\SRC\TST-T.EXE: file is there
C:\fdauto.bat: file is there
F:NUL: file is there
F:CON: file is there
C:\NOFILE: file not there?

So the program thinks it can find F:CON and F:NUL despite no F: drive
on this system.


_______________________________________________
Freedos-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freedos-devel

Reply via email to