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

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 5 Years Ago by zinnqu: n/a

@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.

@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)

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.