Find Location Path

Find Location Path

Anonymous
Not applicable
844 Views
8 Replies
Message 1 of 9

Find Location Path

Anonymous
Not applicable

Dear Friend,

 

        How will you find store Location .exe file path of Auto Cad 2013... using Mfc.....

 

With Regards,

Vijay.....

0 Likes
845 Views
8 Replies
Replies (8)
Message 2 of 9

nick83
Advocate
Advocate

HKLM\Software\Autodesk\AutoCAD\R...\ACAD-...:...\
variable AcadLocation is what you need

0 Likes
Message 3 of 9

Anonymous
Not applicable

Find Autocad 2013\acad.exe Path?Using Mfc?

Example Result is:

1) Some system store in "C:\Program Files\Autodesk\AutoCAD 2013\acad.exe"

2) Some system store in "D:\Program Files\Autodesk\AutoCAD 2013\acad.exe"

0 Likes
Message 4 of 9

nick83
Advocate
Advocate

OMG, did you try my advice MANUALLY using regedit.exe?

There you can find correct location of installed autocad, ANY autocad you want. 

then, use "C++ for beginners" to do the same in MFC way. Or you just want us make your job?

 

PS: you need RegOpenKeyExRegQueryValueEx and RegCloseKey functions :):):)

0 Likes
Message 5 of 9

Anonymous
Not applicable

Manually i am try but we got a result is below....

 

This is my Autocad 2013 location path:In RegEdit

 RegOpenKeyEx ===> _T("SOFTWARE\\AutoDesk\\AutoCAD\\R19.0\\ACAD-B001:409")

 ====> Key is "AcadLocation"

 Output==> Get Output path is  ==> C:\Program Files\Autodesk\AutoCAD 2013

 

 

This is my Autocad Machanical 2013 location path: In RegEdit

 RegOpenKeyEx ===> _T("SOFTWARE\\AutoDesk\\AutoCAD\\R19.0\\ACAD-B005:409")

 ====> Key is "AcadLocation"

 Output==> Get Output path is  ==> C:\Program Files\Autodesk\AutoCAD 2013

 

 

Output===>

 Open all time Auto Cad 2013 but need Auto cad Machanical 2013.


How to different this two location path?

 

0 Likes
Message 6 of 9

owenwengerd
Advisor
Advisor

You'll get more useful answers if you provide more information about your problem. Why do you want the folder location? From which context do you want it, and what do you want to do with it?

--
Owen Wengerd
ManuSoft
0 Likes
Message 7 of 9

Anonymous
Not applicable

In RegEdit:

AutoCad 2013 and AutoCad machanical 2013 installation location path is same....

location path==> c:program:autocad:autocad 2013:acad.exe

load only acadcad 2013.....

I want load Autocad machanical 2013 location path get other then RegEdit?

0 Likes
Message 8 of 9

nick83
Advocate
Advocate

as i remember acad mechanical is not an independent product. it's just a plugin for autacad. check desktop shortcut's link for "autocad 2013" and "autocad machanical 2013"

 

for example, for my acad 2015 link is "C:\Program Files\Autodesk\AutoCAD 2015\acad.exe" /product ACAD /language "en-US"

mb for mechanical it'll be something like "C:\Program Files\Autodesk\AutoCAD 2015\acad.exe" /product MECHANICAL /language "en-US"

if it's so, it'll be quite hard to find out from an independent EXE, what product is running, because the difference will be just in loaded arx files.

0 Likes
Message 9 of 9

Anonymous
Not applicable

Any other option to find get installation location path for Acad Machanical 2013...... 

0 Likes