Skip to content

Instantly share code, notes, and snippets.

@jaywick
Created May 17, 2014 14:19
Show Gist options
  • Select an option

  • Save jaywick/68feb16daedf0e80e0c0 to your computer and use it in GitHub Desktop.

Select an option

Save jaywick/68feb16daedf0e80e0c0 to your computer and use it in GitHub Desktop.
copy-as-path
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