我如何找到我的程序路径 [英] How I Can Find My Programm Path
本文介绍了我如何找到我的程序路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要找到正在运行的程序路径
i需要自己的程序路径
i need to find my program path that is running
i need own program path
推荐答案
你可以使用 GetModuleFileName [ ^ 获取程序的完全限定名称。
传递NULL作为第一个获取当前进程可执行文件路径的参数。
You can use GetModuleFileName[^] to get the fully qualified name of the program.
Pass NULL as the first parameter to get the path of the executable file of the current process.
你好,
看看这里:
http://stackoverflow.com/questions/933850/how-to-find-the-location-of-the-executable-in-c [ ^ ]
http:// stackoverflow。 com / questions / 143174 / how-do-i-get-the-directory-a-program-is-running-from [ ^ ]
http://stackoverflow.com/questions/1528298/get-path-of-executable [ ^ ]
http://www.cplusplus.com/forum/windows/49104/ [ ^ ]
Hi,
Have a look here:
http://stackoverflow.com/questions/933850/how-to-find-the-location-of-the-executable-in-c[^]
http://stackoverflow.com/questions/143174/how-do-i-get-the-directory-that-a-program-is-running-from[^]
http://stackoverflow.com/questions/1528298/get-path-of-executable[^]
http://www.cplusplus.com/forum/windows/49104/[^]
看看to:
http://stackoverflow.com/questions/143174/how-do-i-get-the-directory-that-a-program-is-running-from [< a href =http://stackoverflow.com/questions/143174/how-do-i-get-the-directory-that-a-program-is-running-from\"target =_ blanktitle =新窗口> ^ ]
如果您进行谷歌搜索,有相当多的链接解释
Have a look to:
http://stackoverflow.com/questions/143174/how-do-i-get-the-directory-that-a-program-is-running-from[^]
If you make a google search there are quite links explaining
这篇关于我如何找到我的程序路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文