引用COM组件Windows Script Host Object Model
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using IWshRuntimeLibrary;
using System.IO;
using System.Threading;
namespace WindowsFormsApplication1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
int index = 0;
private void button1_Click(object sender, EventArgs e)
{
string icoPath = Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData) + "\\WindowsFormsApplication1\\";
if (!System.IO.Directory.Exists(icoPath))
System.IO.Di