Article View: comp.windows.ms.programmer
Article #1592Finding full pathname of Windows Executable
From: Eric Bergman-Terrell
Date: Sun, 10 Mar 1991 16:47
Date: Sun, 10 Mar 1991 16:47
15 lines
862 bytes
862 bytes
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
Technical Details
Message-ID:
<1991Mar10.164713.26980@isis.cs.du.edu>Path:
arc1-ca.pugleaf.net!utzoo!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mnemosyne.cs.du.edu!isis!ebergmanShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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