Advertisement
Inksaver

SharpDevelop Launcher

Mar 29th, 2020
267
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.65 KB | None | 0 0
  1. using System;
  2. using System.IO;
  3. using System.Diagnostics;
  4.  
  5. namespace SharpDevelopLauncher
  6. {
  7.     class Program
  8.     {
  9.         public static void Main(string[] args)
  10.         {
  11.             // find the working directory, eg C:\Users\Public\PortableApps\SharpDevelop
  12.             // or X:\PortableApps\SharpDevelop where X is the USB drive letter
  13.             string appPath = Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location);
  14.             string startFile = Path.Combine(appPath, "bin", "SharpDevelop.exe");
  15.             ProcessStartInfo start = new ProcessStartInfo();
  16.             start.FileName = startFile;
  17.             Process.Start(start);
  18.         }
  19.     }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement