在C#中打开路径中有空格的Word文档

r0b*_*077 2 c#

我有这条路;

path = Cash Report\\30-03-2012 01-11-07 Cash Flow Report.Docx
Run Code Online (Sandbox Code Playgroud)

当我使用下面的代码打开文件时,它会尝试打开每个单词。所以它会尝试打开 cash.doc,然后打开 Report.doc 等等;

//Open the newly created file
        ProcessStartInfo startInfo = new ProcessStartInfo();
        startInfo.FileName = "WINWORD.EXE";
        startInfo.Arguments = path;
        Process.Start(startInfo);
Run Code Online (Sandbox Code Playgroud)

有没有办法忽略空格?

Bob*_*ale 5

尝试

path="\"Cash Report\\30-03-2012 01-11-07 Cash Flow Report.Docx\""
Run Code Online (Sandbox Code Playgroud)