PC Review


Reply
Thread Tools Rate Thread

How can I run a .exe program from my own program

 
 
P Andrews
Guest
Posts: n/a
 
      10th Dec 2003
Hi,

I am new to programming, am currently learning visual basic .NET.

Does anybody know how I can run a small .exe from within my own program, for
example I want to write a simple app, where the user has some text boxes and
whatever they type in here, when they press a go button an app runs with the
users input added as a paramenter, so if I was running program.exe and the
user input "full" into the text box the command run would become program.exe
/full

So basically my app just runs another little program with some parameters
after it.

Any help would be welcome,

Thanks,

Peter


 
Reply With Quote
 
 
 
 
solex
Guest
Posts: n/a
 
      10th Dec 2003
System.Diagnostics.Process.Start("program.exe /" & text1.text)


"P Andrews" <(E-Mail Removed)> wrote in message
news:EQHBb.19557$(E-Mail Removed)...
> Hi,
>
> I am new to programming, am currently learning visual basic .NET.
>
> Does anybody know how I can run a small .exe from within my own program,

for
> example I want to write a simple app, where the user has some text boxes

and
> whatever they type in here, when they press a go button an app runs with

the
> users input added as a paramenter, so if I was running program.exe and the
> user input "full" into the text box the command run would become

program.exe
> /full
>
> So basically my app just runs another little program with some parameters
> after it.
>
> Any help would be welcome,
>
> Thanks,
>
> Peter
>
>



 
Reply With Quote
 
Herfried K. Wagner [MVP]
Guest
Posts: n/a
 
      10th Dec 2003
* "P Andrews" <(E-Mail Removed)> scripsit:
> I am new to programming, am currently learning visual basic .NET.
>
> Does anybody know how I can run a small .exe from within my own program, for
> example I want to write a simple app, where the user has some text boxes and
> whatever they type in here, when they press a go button an app runs with the
> users input added as a paramenter, so if I was running program.exe and the
> user input "full" into the text box the command run would become program.exe
> /full


\\\
Imports System.Diagnostics
..
..
..
Dim p As New ProcessStartInfo()
p.FileName = "Foo.exe"
p.Arguments = "/foo"
Process.Start(p)
///

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Uninstalled Program, but Program Name Remains in Program & Featur kuyarog Windows Vista General Discussion 3 2nd Dec 2007 12:26 AM
buffer overflow in program:c\program files\internet explorer\iexpl =?Utf-8?B?VFJBSU5NQU41NA==?= Windows XP Internet Explorer 1 17th Feb 2007 10:47 PM
Help. I am creating a Program for college, in which the Program will read a Folder and create a HTML page. Paul Microsoft VB .NET 5 15th Jul 2005 03:04 AM
Runtime Error! Program:c:\Program Files\Internet Explorer\iexplore =?Utf-8?B?Um9iZXJ0SGlsbEVEUw==?= Windows XP Internet Explorer 2 21st Jan 2005 09:52 PM
my program won't work on computer without framework, dow do i make a program that runs on every windows 2k/xp system ? bart Microsoft C# .NET 11 26th Jan 2004 05:01 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:01 AM.