Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.IO;
- using System.Diagnostics;
- namespace SharpDevelopLauncher
- {
- class Program
- {
- public static void Main(string[] args)
- {
- // find the working directory, eg C:\Users\Public\PortableApps\SharpDevelop
- // or X:\PortableApps\SharpDevelop where X is the USB drive letter
- string appPath = Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location);
- string startFile = Path.Combine(appPath, "bin", "SharpDevelop.exe");
- ProcessStartInfo start = new ProcessStartInfo();
- start.FileName = startFile;
- Process.Start(start);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement