using System;//Environment using System.Windows.Forms; //add referece of System.Windows.Forms :DataFormats namespace getfilepath { class Program { [STAThreadAttribute] //由于操作剪贴板是多线程,故必须加上上边那个标识符,STAThread]是 //Single Thread Apartment单线程套间的意思,是一种线程模型 p…