C:\\CreateLink.vbs 谁能帮我加注释:vs c#

来源:百度知道 编辑:UC知道 时间:2024/06/28 01:02:06
string QQpath="";
private void btnRun_Click(object sender, System.EventArgs e)
{
if(
File.Exists(QQpath)&&this.tbQQNumber.Text!=""&&this.tbQQPass.Text!="")
{
StreamWriter sw=new StreamWriter("C:\\CreateLink.vbs",false,System.Text.Encoding.GetEncoding("GB2312"));
sw.WriteLine("Set C = CreateObject(\"WScript.Shell\")");
sw.WriteLine("DesktopPath = C.SpecialFolders(\"Desktop\")");
string temp="/START QQUIN:"+this.tbQQNumber.Text+" PWDHASH:"+MainForm.HashBase64(this.tbQQPass.Text)+" /STAT:"+(this.chkStealth.Checked?"40":"41");
sw.WriteLine("Set link = C.CreateShortcut(DesktopPath & \"\\"+this.tbQQNumber.Text+".lnk\")");
sw.WriteLine("link.IconLocation = \""+QQp

string QQpath=""; \\定义QQpath
private void btnRun_Click(object sender, System.EventArgs e)
{
\\if是否判断语句 不用我说了吧
if(
File.Exists(QQpath)&&this.tbQQNumber.Text!=""&&this.tbQQPass.Text!="") \\tbQQNumber.text 文件加锁(QQpath)
{
StreamWriter sw=new StreamWriter("C:\\CreateLink.vbs",false,System.Text.Encoding.GetEncoding("GB2312")); \\定义一个stream的写入,下面的也都是全部树型link的写入 语法还全是vbs的,汗一个,mainform是主窗口
sw.WriteLine("Set C = CreateObject(\"WScript.Shell\")");
sw.WriteLine("DesktopPath = C.SpecialFolders(\"Desktop\")");
string temp="/START QQUIN:"+this.tbQQNumber.Text+" PWDHASH:"+MainForm.HashBase64(this.tbQQPass.Text)+" /STAT:"+(this.chkStealth.Checked?"40":"41");
sw.WriteLine("Set link = C.CreateShortcut(DesktopPath & \"\\"