using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace copypath
{
class Program
{
[STAThreadAttribute]
static void Main(string[] args)
{
string s = "
";
Array.Reverse(args);
foreach (string arg in args)
{
s += makeTag(System.IO.Path.GetFileName(arg));
}
if (s != "")
{
s += "
";
Clipboard.SetText(s);
}
}
static string makeTag(string filename)
{
/* Copy Public Linkでコピーした画像のURLが
http://dl.dropbox.com/u/1111111/kansou/画像.png なら
http://dl.dropbox.com/u/1111111/kansou/ をdropboxPathに入れる。
*/
// @をつけるエスケープ
string dropboxPath = @"http://dl.dropbox.com/u/あなたのDropboxID";
string filePath = dropboxPath + filename;
return "
";
}
}
}