variable path to accessories

T

Terry

Hello,
I would like to add "shortcut" buttons to a form to call
Windows notepad and calculator.
My question is: What is the best way to handle variable
locations of these .exe's?
NT, 2K, XP, 98 could be in different folders from machine
to machine where I install the front-end.
I am unclear on how I can set variable paths for different
operating systems.
I was looking at the kb article 210158, but I am not sure
if this is heading in the right direction.

Any suggestions?

Thanks.

Terry
 
G

Gary Miller

Terry,

Experiment with this on a few different machines and OS's.

Dim retVal

retval = Shell("calc.exe")

I think that this will work universally, only because
calculator and notepad normally live in the Windows
WhateverVersion directory which at the root of the path
statement on all M$ systems so a full path is not required.

Gary Miller
Sisters, OR
 

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