Subj : Re: filename of executable using WinMain? To : borland.public.cpp.borlandcpp From : "Ed Mulroy [TeamB]" Date : Wed Nov 12 2003 08:32 pm Other ways: include dos.h and look at the value of _argv[0] Call GetModuleFileName .. Ed > Bob V wrote in message > news:3fb2caef$1@newsgroups.borland.com... > > Answering my own question, > LPTSTR GetCommandLine(VOID) > does the trick. .