Created
May 17, 2014 14:19
-
-
Save jaywick/68feb16daedf0e80e0c0 to your computer and use it in GitHub Desktop.
copy-as-path
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Windows.Forms; | |
| namespace copypath | |
| { | |
| static class Program | |
| { | |
| /// <summary> | |
| /// The main entry point for the application. | |
| /// </summary> | |
| [STAThread] | |
| static void Main() | |
| { | |
| Application.EnableVisualStyles(); | |
| Application.SetCompatibleTextRenderingDefault(false); | |
| var args = Environment.GetCommandLineArgs(); | |
| if (args.Length == 2) | |
| { | |
| Clipboard.SetText(args[1]); | |
| } | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment