Date: Mon, 26 Apr 1999 11:25:07 +0300 (IDT) From: Eli Zaretskii X-Sender: eliz AT is To: Li Hongwei Subject: Re: DJGPP programme on Win NT In-Reply-To: <000e01be8f83$a3fb5d80$8bc9a19b@hongwei.corp.fedex.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII ReSent-Date: Mon, 26 Apr 1999 17:37:23 +0300 (IDT) ReSent-From: Eli Zaretskii ReSent-To: djgpp AT delorie DOT com ReSent-Message-ID: Reply-To: djgpp AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Mon, 26 Apr 1999, Li Hongwei wrote: > Here I send you the file names that I link or unlink, > file "tea44458.ors" will link to "C:\Users\Postman/proc/tea44458.ors". What is the full path of the file "tea44458.ors"? link() doesn't work for files on different drives, so I need to know where does the original file reside. > I don't think it is the "/" or "\" cause the problem, and I am sure > that there are not invalid charectors in the file names. The slashes won't cause any trouble. But I don't understand the part about invalid characters: I don't see any invalid characters in these two file names. > I can run this programme in a Dos prompt on Win NT. But if I invoke the > programme in another programme, the link and unlink will cause problem. How do you invoke the program from the DOS prompt? What is the command line? Could you also print the argv[] array from within the program and tell me what does it say when the program is invoked from the DOS prompt and from another program? Also, please tell me which version of DJGPP do you use. Is it v2.01 or v2.02?