Open the Windows Calculator

G

Guest

I have a form in which I would like to have a button that will open the
standard Windows Calculator. I know the path on my machine running Windows
2000, but isn't the Calculator EXE file located in different directories
depending on which operating system you are running?
I'm not sure how to find it using the 'Shell' function. I tried:
Call Shell("%SystemRoot%\System32\calc.exe", 1) but it doesn't work.

I'd appreciate any help! Thanks!
 
R

Rick Brandt

Joey said:
I have a form in which I would like to have a button that will open
the standard Windows Calculator. I know the path on my machine
running Windows 2000, but isn't the Calculator EXE file located in
different directories depending on which operating system you are
running?
I'm not sure how to find it using the 'Shell' function. I tried:
Call Shell("%SystemRoot%\System32\calc.exe", 1) but it doesn't work.

I'd appreciate any help! Thanks!

Windows typically "knows" the location of all of the built in utilities
regardless of whether that is consisten on all machines. I just tested...

shell "calc.exe"

....and it worked for me.
 
G

Guest

Your suggestions seem to work.
Thanks for the very quick reply! I really appreciate the help!
 

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