Open file using C#

using System.Diagnostics

string str = @"C:\windows\system32\notepad.exe"; // Đường dẫn + file cần mở

Process process = new Process();
process.StartInfo.FileName = str;
process.Start();


// Hoặc 


 process.start(str);
SHARE

Milan Tomic

Hi. I’m Designer of Blog Magic. I’m CEO/Founder of ThemeXpose. I’m Creative Art Director, Web Designer, UI/UX Designer, Interaction Designer, Industrial Designer, Web Developer, Business Enthusiast, StartUp Enthusiast, Speaker, Writer and Photographer. Inspired to make things looks better.

  • Image
  • Image
  • Image
  • Image
  • Image
    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment