Shell Command

  • Thread starter Thread starter Mike Galasso
  • Start date Start date
M

Mike Galasso

I am trying to use the Tools.Shell ("somefile.exe") method to open a file. I
am using System.Windows.Forms but its not working. Should I be >using<
another class ?

Maybe you have another way to open files ?
 
hi,
I am trying to use the Tools.Shell ("somefile.exe") method to open a file. I
am using System.Windows.Forms but its not working. Should I be >using<
another class ?

Maybe you have another way to open files ?

System.Diagnostics.Process.Start("<FILENAME>");

if not an executable, windows opens the files with its default application.

- crea
 
Use the different overloads of System.Diagnostics.Process.Start

You might want to use the overload which accepts the ProcessStartInfo arg
for more control.
 
Back
Top