Project Directory

T

Thomas Pagel

Hi,

how can I find out the directory Project Professional 2002/2003 is installed
in?

Thanks,


Thomas
 
J

Jan De Messemaeker

Do a search on Winproj.exe
HTH
--
Jan De Messemaeker
Microsoft Project Most Valuable Professional
Project Management Consultancy
Prom+ade BVBA
32-495-300 620
 
T

Thomas Pagel

Jan,

well, that's a "work around" but no serious solution, because it can take a
serious amount of time...

I found a way to ask the MS installer for the directory, but that article is
only for C, not VB... No idea how to do that in VB...

Thanks,


Thomas
 
J

Jan De Messemaeker

Hi Thomas,

I do not know how many files you have, but when I ask for a Find (via the
Start menu of Windows) that takes hardly one minute.
HTH

--
Jan De Messemaeker
Microsoft Project Most Valuable Professional
Project Management Consultancy
Prom+ade BVBA
32-495-300 620
 
T

Thomas Pagel

Jan,

OK, but I'm working on an application which will run in the background and
will start every 5 minutes to update some projects... Then one minute
searching for winproj.exe is long...

Thanks,


Thomas
 
J

Jan De Messemaeker

Hi Thomas,

In my idea you did the search manually, then entered the result as a
constant... sorry for the misunderstanding.
Fact is, will you run each time in a different computer?
If not, you absolutely do not need the address of Winproj.exe, I think most
languages can add a reference to an other application can't they?
By all means, VBA does that.
So you add the refernce to MS project and then use the CreateObject methiod
(or the equivalent in the language you use) to create an
MSProject.application Object and you can then fdo whatever you want.

Gruesse aus Belgien,


--
Jan De Messemaeker
Microsoft Project Most Valuable Professional
Project Management Consultancy
Prom+ade BVBA
32-495-300 620
 
J

Jack D.

Thomas said:
Hi,

how can I find out the directory Project Professional 2002/2003 is
installed in?

Thanks,


Thomas

There should be a registry entry for it.
I find one in
HKEY_LOCAL_MACHINE/SOFTWARE/Classes/Applications/WINPROJ.EXE/shell/Open/comm
and which contains the path.
There may be others.
Use the GetSetting function to retrieve it:
Syntax

GetSetting(appname, section, key[, default])

-Jack


--
Please try to keep replies in this group. I do check e-mail, but only
infrequently. For Macros and other things check http://masamiki.com/project

-Jack Dahlgren, Project MVP


+++++++++++++++++++
 
T

Thomas Pagel

Jack,

thanks, there are losts to choose from... I'll try to find one which is as
independant of the project version as possible...


Thomas


Jack D. said:
Thomas said:
Hi,

how can I find out the directory Project Professional 2002/2003 is
installed in?

Thanks,


Thomas

There should be a registry entry for it.
I find one in
HKEY_LOCAL_MACHINE/SOFTWARE/Classes/Applications/WINPROJ.EXE/shell/Open/comm
and which contains the path.
There may be others.
Use the GetSetting function to retrieve it:
Syntax

GetSetting(appname, section, key[, default])

-Jack


--
Please try to keep replies in this group. I do check e-mail, but only
infrequently. For Macros and other things check http://masamiki.com/project

-Jack Dahlgren, Project MVP


+++++++++++++++++++
 
T

Thomas Pagel

Jan,

the problem with CreateObject is that you don't have access to Project
Server after starting Project Professional... at least it doesn't work for
me... If you start Project Professional first, then everything is fine...
but then you need the path for it...

Thanks,


Thomas
 
R

Rod Gill

Hi,

No need. Run teh search once and store teh path in the Registry using:
SaveSetting "MyApp", "Proejct", "Path", ProjPath

You can also use:
dim ProjApp as Object
set ProjApp=createobject("MSProejct.Application") to return a Proejct object
ProjPath=ProjApp.path
SaveSetting "MyApp", "Project", "Path", ProjPath
ProjApp.Quit
Set ProjApp=nothing

--
Rod Gill
Project MVP
For Microsoft Project companion projects, best practices and Project VBA
development services
visit www.projectlearning.com/
 
T

Thomas Pagel

Rod,

thanks, we'll give that a try...


Thomas


Rod Gill said:
Hi,

No need. Run teh search once and store teh path in the Registry using:
SaveSetting "MyApp", "Proejct", "Path", ProjPath

You can also use:
dim ProjApp as Object
set ProjApp=createobject("MSProejct.Application") to return a Proejct object
ProjPath=ProjApp.path
SaveSetting "MyApp", "Project", "Path", ProjPath
ProjApp.Quit
Set ProjApp=nothing

--
Rod Gill
Project MVP
For Microsoft Project companion projects, best practices and Project VBA
development services
visit www.projectlearning.com/
 
J

Jack D.

Thomas said:
Jack,

thanks, there are losts to choose from... I'll try to find one which is as
independant of the project version as possible...


Thomas


Jack D. said:
There should be a registry entry for it.
I find one in
HKEY_LOCAL_MACHINE/SOFTWARE/Classes/Applications/WINPROJ.EXE/shell/Open/comm
and which contains the path.
There may be others.
Use the GetSetting function to retrieve it:
Syntax

GetSetting(appname, section, key[, default])

-Jack


--
Please try to keep replies in this group. I do check e-mail, but only
infrequently. For Macros and other things check
http://masamiki.com/project

-Jack Dahlgren, Project MVP


+++++++++++++++++++

I believe that the one I posted is the one which will launch if you
doubleclick a file which is associated with Ms project.

--
Please try to keep replies in this group. I do check e-mail, but only
infrequently. For Macros and other things check http://masamiki.com/project

-Jack Dahlgren, Project MVP


+++++++++++++++++++
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top