RunApp Path

G

Greg Jackson

I am using Access 2002 and trying to open a file in MS
Word with the following in the command line:

"C:\Program Files\Microsoft Office\Office10
\WINWORD.EXE": "C:\Temp\cve.txt"

This works great...However, WINWORD.EXE is not located in
the same directory on all machines. Is there a way to
prompt the user for the full path to WINWORD.EXE, assign
that to a variable, and use the variable in the command
line above. For example:

MyPath: "C:\Temp\cve.txt"

Thanks in advance!
 
N

Nikos Yannacopoulos

Greg,

You needn't worry about the path. Office installation adds the Office path
to the Path statement loaded at Windows startup, so Windows knows where to
find it. That is to say,

"WINWORD.EXE": "C:\Temp\cve.txt"

should work on any machine.

HTH,
Nikos
 

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