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
> >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
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
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
4 matches
Mail list logo