By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,346 Members | 2,331 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,346 IT Pros & Developers. It's quick & easy.

Opening the calculator

P: 1
im trying to write a program that when a button is pressed, it will open the windows calculator located in c:\windows\system32.
i have tries using the shell command and i always get an error of some kind. can someone please help me?
Mar 19 '08 #1
Share this Question
Share on Google+
4 Replies


P: 38
im trying to write a program that when a button is pressed, it will open the windows calculator located in c:\windows\system32.
i have tries using the shell command and i always get an error of some kind. can someone please help me?
Try this
place on your button
Expand|Select|Wrap|Line Numbers
  1. Diagnostics.Process.Start("Path") ' "Path" = path to exec for calc
  2.  
hope this helps
Mar 19 '08 #2

lotus18
100+
P: 866
Try this
place on your button
Expand|Select|Wrap|Line Numbers
  1. Diagnostics.Process.Start("Path") ' "Path" = path to exec for calc
  2.  
hope this helps
What language is this?

Try

Expand|Select|Wrap|Line Numbers
  1. Shell "c:\windows\system32\calc.exe"
Rey Sean
Mar 20 '08 #3

Expert 5K+
P: 8,434
What language is this?
Diagnostics.Process.Start is part of the .Net framework.
Mar 20 '08 #4

P: 8
use following coding.........

Dim Batfile as string
dim executwDOSCommand as ApplicationStartConstants
Batfile="c:\path for calculator.exe"
ExecutwDOSCommand=shell("" "" & Batfile & "")

Regards,
Hemant K
Mar 20 '08 #5

Post your reply

Sign in to post your reply or Sign up for a free account.