开发者

Issue launching Wing from C#

I have this snippet of code:

void wing()
{
    Process wing = new Pr开发者_运维问答ocess();
    wing.StartInfo.UseShellExecute = true;
    wing.StartInfo.FileName = "C:\\Program Files\\Wing IDE 4.0\\bin\\wing.exe";
    wing.StartInfo.Arguments = "C:\\Documents and Settings\\User\\Desktop\\hello.py";
    wing.Start(); 
}

Every time time I run this snippet, my program really opens wing with the file, but strange thing is that the path for file in wing is: C:\Documents and Settings\User\My Documents\Visual Studio 2010\Projects.... How could it be? Also, I can't see code inside hello.py. Thanks in advance for any help


Try putting double quotes around the filename i.e. @"""" + "C:\....your file" + @""""

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜