string gameUrl = http://www.baidu.com

                string fileName = HttpUtility.UrlEncode("百度.url");

                context.Response.ContentType = "APPLICATION/OCTET-STREAM";
                context.Response.AddHeader("Content-Disposition", "attachment;filename=" + fileName);
                context.Response.Write("[InternetShortcut]\n");
                context.Response.Write("URL=" + gameUrl + "\n");
                context.Response.Write("IDList=\n");
                context.Response.Write("IconFile=http://www.7road.com/favicon.ico\n");
                context.Response.Write("IconIndex=1\n");
                context.Response.Write("[{000214A0-0000-0000-C000-000000000046}]\n");
                context.Response.Write("Prop3=19,2\n");
                context.ApplicationInstance.CompleteRequest();

相关文章:

  • 2022-12-23
  • 2021-06-07
  • 2021-10-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-07-09
  • 2021-10-20
  • 2021-07-20
  • 2022-01-04
  • 2021-08-22
相关资源
相似解决方案