點先可以係C++/VB到開啟外部程式..

2010-06-29 11:56 pm
我睇左http://hk.knowledge.yahoo.com/question/question?qid=7009041800630
但如果唔知"要開既程式"係裝左係C:\或D:\或E:\其中一個
只知道個"程式"係同"要開既程式"同一個file
要點開?
更新1:

要點先可以係label知道個程式既位置?(因為可以能裝係唔同地方)

回答 (1)

2010-06-30 2:57 am
✔ 最佳答案
If you simply call "abc.exe" (ie, don't provide a absolute path like "X:/abc.exe"), Windows will look for "abc.exe" at the same location as the caller executable.



Or you can work out the absolute path by using argv[0] (C++).


收錄日期: 2021-05-03 16:58:04
原文連結 [永久失效]:
https://hk.answers.yahoo.com/question/index?qid=20100629000051KK00843

檢視 Wayback Machine 備份