Open the Windows Calculator

  • Thread starter Thread starter Guest
  • Start date Start date
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!
 
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.
 
Your suggestions seem to work.
Thanks for the very quick reply! I really appreciate the help!
 
Back
Top