RE: [GD-Windows] Program directory
Brought to you by:
vexxed72
From: Jacob T. (C. D. Ltd) <Ja...@Co...> - 2002-06-11 12:26:29
|
Isn't argument 0 to main the full path for the executable. I think you can still get at the command line even if you are a windows = app and not a console app. -----Original Message----- From: Ignacio Casta=F1o [mailto:cas...@ya...] Sent: 11 June 2002 13:27 To: gam...@li... Subject: [GD-Windows] Program directory Hi, I would like to know how to retrieve the path where the program being executed is. Usually it's the current working directory, that you can = get with getcwd, but in some cases that's not true. For example, when the program is in the path or when you simply do: folder\program.exe Is there any safe way of doing this? I could save the name of the directory during installation or something = like that, but actually my program doesn't have any installation, so I would prefer another option. Ignacio Casta=F1o cas...@ya... _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com _______________________________________________________________ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas - http://devcon.sprintpcs.com/adp/index.cfm?source=3Dosdntextlink _______________________________________________ Gamedevlists-windows mailing list Gam...@li... https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows Archives: http://sourceforge.net/mailarchive/forum.php?forum_id=3D555 |