[GD-Windows] Program directory
Brought to you by:
vexxed72
From: <cas...@ya...> - 2002-06-11 12:16:10
|
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ño cas...@ya... _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com |