Running .exe file

  • Thread starter Thread starter Leszek Gruszka
  • Start date Start date
L

Leszek Gruszka

Hello!
How to run .exe file, that will be in the same directory?
 
Leszek Gruszka said:
How to run .exe file, that will be in the same directory?

Take a look at 'Microsoft.Interaction.Shell' and
'System.Diagnostics.Process.Start'.
 
Thanks!
It works ok, but there is a little problem...
I'm trying to execute "gpresult.exe > 1.txt".
I don't know how to run it and i'm getting error at ">".
It cannot put stream into a file.

My code looks something like that:

Dim aplik as integer
aplik = Shell("""gpresult.exe"" >1.txt", , True)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top