0

If I wanted to call the RUN prompt and the Command prompt in my application, what exe's would I need to reference?

3
Contributors
6
Replies
7
Views
6 Years
Discussion Span
Last Post by zinnqu
1

calling the Run command in windows is not really on option in vb.net how ever you can call any exe via System.Diagnostics.Process()

dim proc as new system.diagnostic.process()
dim x as integer

'assign a button so that you can click and a inputbox will prompt and you can try to type:
'notepad,cmd,calc to prove
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
x = inputbox("run exe","run")
proc = process.start(x)

Edited by zinnqu: n/a

0

@zinnqu - Why is it not an option? I've seen other VB.NET compiled programs that can call it. They just didn't show the code.

0

@zinnqu - Why is it not an option? I've seen other VB.NET compiled programs that can call it. They just didn't show the code.

What I have given you is the "run command". What others do is create their own.the task bar is a sealed class. If you read the code you have every ething that you need to create a run command that would run every thing you want, even api commands that windows already uses. (notepad,cmd, whatever)

0

Okay. Sorry zinnqu. I misread it. My apologies.

It's alright. If this helped, please mark the thread as solved and Vote.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.