getting app classname from path

S

Silvester

Is there any way to be able to get the classname of an app from the path ?

On my A2000 form, users are allowed to browse the hdd for any app.
The path to that app is then stored as a string in my table.
Clicking the Test button will launch the app.
Before shelling that external app from my A2000 form, I need to be able to
check if it is already running or the shell command will generate an error.

For this I need to be able to get the classname of the app selected from its
path. I can then test eg: fIsAppRunning("Word",True) using dev ashish's
code.

Would appreciate any wisdom.
 
6

'69 Camaro

Hi, Silvester.
Is there any way to be able to get the classname of an app from the path ?

Only if you strategically name a directory or subdirectory in that path.
For example, the path:

C:\Sales\Training\opusApp\

.... contains the ClassName "opusApp" which indicates Microsoft Word
documents in that directory. This isn't very practical. You'll probably
need to use a different approach, but perhaps mere error handling would be
appropriate for your VBA procedure.

HTH.

Gunny

See http://www.QBuilt.com for all your database needs.
See http://www.Access.QBuilt.com for Microsoft Access tips.

(Please remove ZERO_SPAM from my reply E-mail address, so that a message
will be forwarded to me.)
 

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