Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/272.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 从C发出发射翼#_C#_Python - Fatal编程技术网

C# 从C发出发射翼#

C# 从C发出发射翼#,c#,python,C#,Python,我有一段代码: void wing() { Process wing = new Process(); 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\\Deskt

我有一段代码:

void wing()
{
    Process wing = new Process();
    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(); 
}

每次我运行这个代码段时,我的程序都会打开带有该文件的wing,但奇怪的是wing中文件的路径是:
C:\Documents and Settings\User\my Documents\Visual Studio 2010\Projects…
。怎么可能呢?而且,我看不到
hello.py
中的代码。提前感谢您的帮助

尝试在文件名周围加上双引号,即@“”+“C:\…您的文件”+@“