private function callTest(event: Event): void{callExe("d:/a.exe");callBat("d:/a.bat");} private function callExe(extUrl: String): void{//使用静态属性 NativeApplication.nativeApplication 获取应用程序的 NativeApplication 实例//指定在关闭所有窗口后是否应自动终止应用程序. Na
打开 mysql 的查询窗口(使用root),使用SQL: -- 使用mysql库 use mysql; -- 更新密码 update user set password=PASSWORD('xxxxxxxx') where User='root'; -- 开启外部访问权限 GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'xxxxxxxx' WITH GRANT OPTION; -- 提交 FLUSH PRIVILEGES;
using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Data; using System.Text; using System.Windows.Forms; using System.Diagnostics; using System.Runtime.InteropServices; using System.IO; usin
using System; using System.Collections.Generic; using System.Text; using System.Diagnostics; using System.Runtime.InteropServices; using System.Windows.Forms; namespace War3Screen { /// <summary> /// 以嵌入到窗体的方式打开外部exe--kongfl888 2013 /// </summary
由于需要获取显卡信息,但是unity的自带函数,只能输出1个显卡 c#倒是可以但是引用了一个下载的dll System.Management.dll 这个dll放到unity用不了,因为mono不支持 所以先用vs写个外部exe程序 using System; using System.Management; public class Sample { public static void Main(string[] args) { string Gname = ""; Manag