让你的WinForm去访问web吧,或者用个WebServers,不行就用Socket吧

解决方案 »

  1.   

    要没办法,可不可以不考虑传参的方式,利用文件或数据库存放你的参数,winform程序去读一下拿到东西就可以了。
      

  2.   

     static void Main(string[] args)
    {
       //试试这个,如果真的传过来了 args.Length > 0 
        string param1= args[0];
        string param2= args[1];
    }
      

  3.   

    能执行activex,是你使用了wscript
    想要接受js传入的消息,跨语言传递参数  除非通信编程
      

  4.   

    如果你写的是一个MVC网页,可以通过dataset传递
      

  5.   

    参数以空格分隔(如果参数中本身包含空格,就用双引号括起),EXE路径也应括起,如
    PrintStr = "true"
    //多个参数
    //PrintStr = string.Join(空格, new string[]{"true", "\"abc带空格\"", "1"}) 
    objShell.run("\"E:\\杭州杭和软件\\条码打印CS\\MaterialBarCode.exe\"空格" + PrintStr);
      

  6.   

    static class Program
        {
            /// <summary>
            /// 应用程序的主入口点。
            /// </summary>
            [STAThread]
            static void Main()
            {
                Application.EnableVisualStyles();
                Application.SetCompatibleTextRenderingDefault(false);
                Application.Run(new MainForm());
            }
        }这个是 winfrom入口,该怎么写呢?三楼没有那个参数啊