Results 1 to 4 of 4

Thread: execute external .exe

  1. #1

    Thread Starter
    Fanatic Member carlblanchard's Avatar
    Join Date
    Sep 2003
    Location
    Bournemouth (UK)
    Posts
    539

    execute external .exe

    I think this would be pretty easy,

    I am building my setup for my application and we need to install 3rd party software, so in my main application ive added a menu item to install each bit of 3rd party software so when a user clicks this i want to run a .exe which sits in my installation folder within program files.

    How do you execute an enternal exe from a button click

    thanks all
    I am curretly building a defect management system for software and web developers,
    If you wana try it out (beta test) and keep it for free just send me a message

  2. #2
    Fanatic Member pax's Avatar
    Join Date
    Mar 2001
    Location
    Denmark
    Posts
    840
    Hi.

    You can use the Process.Start(FileName) method.
    There are several different ways you can call this, so you can control wether to wait until the process ends before continueing or open maximized and so on.
    I wish I could think of something witty to put in my sig...

    ...Currently using VS2013...

  3. #3

    Thread Starter
    Fanatic Member carlblanchard's Avatar
    Join Date
    Sep 2003
    Location
    Bournemouth (UK)
    Posts
    539
    OK cheers thats worked cool,
    you know how to open a folder ? sperific directory ?
    I am curretly building a defect management system for software and web developers,
    If you wana try it out (beta test) and keep it for free just send me a message

  4. #4
    PowerPoster 2.0 Negative0's Avatar
    Join Date
    Jun 2000
    Location
    Southeastern MI
    Posts
    4,367
    Code:
    Process.Start("explorer", "C:\Windows")

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width