RE: GCC and getcwd

2002-02-01 Thread Francis Harvey
Greetings, I was pretty sure it was a conceptual problem, so thanks to everybody for confirmation. Now, I simply have my wrapper WinBatch program pass the path to its executable which is guaranteed to be in the same folder as the text file I am looking for. Curiously, up till this point, I had

Re: GCC and getcwd

2002-02-01 Thread Barubary
> >This is not the Unix way to do things. The Unix API does not provide any way for a process to find out where its executable image is located (it might not exist anymore!) See: > >http://www.erlenstar.demon.co.uk/unix/faq_2.html#SEC23 This isn't the Windows NT way to do things, either. Process

Re: GCC and getcwd

2002-01-31 Thread Larry Hall (RFK Partners, Inc)
At 05:55 PM 1/31/2002, Sami Tikka wrote: >Francis Harvey wrote: > >>I want to find the current directory that the executable file is in, >>so I can open a text file in the same directory. The executable >>is on the k drive, but my code doesn't return the correct path: > >This is not the Unix way

Re: GCC and getcwd

2002-01-31 Thread Sami Tikka
Francis Harvey wrote: > I want to find the current directory that the executable file is in, > so I can open a text file in the same directory. The executable > is on the k drive, but my code doesn't return the correct path: This is not the Unix way to do things. The Unix API does not provide a