Opening the calculator

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pikkon990
    New Member
    • Mar 2008
    • 1

    Opening the calculator

    im trying to write a program that when a button is pressed, it will open the windows calculator located in c:\windows\syst em32.
    i have tries using the shell command and i always get an error of some kind. can someone please help me?
  • Semajthewise
    New Member
    • Nov 2007
    • 38

    #2
    Originally posted by pikkon990
    im trying to write a program that when a button is pressed, it will open the windows calculator located in c:\windows\syst em32.
    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
    Code:
    Diagnostics.Process.Start("Path") ' "Path" = path to exec for calc
    hope this helps

    Comment

    • lotus18
      Contributor
      • Nov 2007
      • 865

      #3
      Originally posted by Semajthewise
      Try this
      place on your button
      Code:
      Diagnostics.Process.Start("Path") ' "Path" = path to exec for calc
      hope this helps
      What language is this?

      Try

      [CODE=vb]Shell "c:\windows\sys tem32\calc.exe"[/CODE]

      Rey Sean

      Comment

      • Killer42
        Recognized Expert Expert
        • Oct 2006
        • 8429

        #4
        Originally posted by lotus18
        What language is this?
        Diagnostics.Pro cess.Start is part of the .Net framework.

        Comment

        • hemant kamble
          New Member
          • Oct 2007
          • 8

          #5
          use following coding.........

          Dim Batfile as string
          dim executwDOSComma nd as ApplicationStar tConstants
          Batfile="c:\pat h for calculator.exe"
          ExecutwDOSComma nd=shell("" "" & Batfile & "")

          Regards,
          Hemant K

          Comment

          Working...