js方法 function Run(strPath) //only for ie { try { var objShell = new ActiveXObject("wscript.shell"); objShell.CurrentDirectory="E:\\YOURPATH\\C++\\CHelloWord 3\\Debug\\"; //设置当前路径很重要,能让exe程序解决 相对路径问题 (否则会在html所在路径找) objShell.Run(strPa
流传了两种配置app.xml的方法,分别是: <supportedProfiles>extendedDesktop</supportedProfiles> <supportedProfiles>desktop extendedDesktop</supportedProfiles> 经测试发现,第二种方式在IDE中调试程序会出问题,当我调用exe的时候会报错:Error: Error #3219: The NativeProcess could not be
using System;using System.Diagnostics;using System.Windows.Forms; namespace WindowsFormsApplication1{ public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void button1_Click(objec