Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mnemosyne.cs.du.edu!isis!ebergman From: ebergman@isis.cs.du.edu (Eric Bergman-Terrell) Newsgroups: comp.windows.ms.programmer Subject: Finding full pathname of Windows Executable Message-ID: <1991Mar10.164713.26980@isis.cs.du.edu> Date: 10 Mar 91 16:47:13 GMT Reply-To: ebergman@isis.UUCP (Eric Bergman-Terrell) Organization: Nyx -- Public access Unix, U. of Denver, dept. of Math/CS Lines: 15 How can a Windows program figure out the pathname of its .exe file? Why I ask: I have a Windows program that needs to load a data file that is stored in the same directory with the .exe. I don't want to hard-code the data file's filename... In MS-DOS, a program could get this information by looking at argv[0]. How is it accomplished in Windows? ADV thanks ANCE Terrell