ShellExecute(hWnd,"open","C:\\Documents and Settings\\Administrator\\桌面\\86days\\receiver1\\receiver1\\Debug\\receiver1.exe",0,0,2);我想把"c:\\a\\b"传递给C:\\Documents and Settings\\Administrator\\桌面\\86days\\receiver1\\receiver1\\Debug\\receiver1.exe
该怎么写啊?

解决方案 »

  1.   

    ShellExecute(hWnd,"open","C:\\Documents and Settings\\Administrator\\桌面\\86days\\receiver1\\receiver1\\Debug\\receiver1.exe","\"c:\\a\\b\"",0,SW_SHOW);
      

  2.   

    出错:c:\a\b中包含无效的路径。
            怎么解决啊?谢谢!
      

  3.   

    我想传字符串"\"c:\\a\\b\"过去哈
      

  4.   

    ShellExecute(hWnd,"open","\"C:\\Documents and Settings\\Administrator\\桌面\\86days\\receiver1\\receiver1\\Debug\\receiver1.exe c:\\a\\b\"",0,0,SW_SHOW);
    这样可以吗?
      

  5.   

    把"\"c:\\a\\b\"",
    换成
    "c:\\a\\b",
      

  6.   

    To:winwinter
          你说的方法我已经试过了,还是不行,有没有其他的方法啊?
      

  7.   

    你是不是把ShExecInfo.fMask的属性设置成了SEE_MASK_NOCLOSEPROCESS?可以改成SEE_MASK_NO_CONSOLE