Path: utzoo!attcan!uunet!zephyr.ens.tek.com!uw-beaver!milton!dali.cs.montana.edu!uakari.primate.wisc.edu!zaphod.mps.ohio-state.edu!sdd.hp.com!hplabs!hpda!hpcuhc!jwei From: jwei@hpcuhc.cup.hp.com (John Wei) Newsgroups: comp.unix.xenix.sco Subject: Develop a DOS program Message-ID: <112670002@hpcuhc.cup.hp.com> Date: 24 Oct 90 16:25:17 GMT Organization: Hewlett Packard, Cupertino Lines: 19 I was using SCO Sys V/386 UNIX cross development package to compile and link a small program. When I run the binary under DOS, open() failed with error message "No such file or directory". Any comment? -------------------------------- main(argc, argv) int argc; char *argv[]; { . . /* argv[1] is file name that I specified on command line */ if((fd=open(argv[1], O_CREAT|O_RDWR, S_IWRITE)) < 0) { perror("open"); } . . }