我有这条路;
path = Cash Report\\30-03-2012 01-11-07 Cash Flow Report.Docx
当我使用下面的代码打开文件时,它会尝试打开每个单词。所以它会尝试打开 cash.doc,然后打开 Report.doc 等等;
//Open the newly created file
ProcessStartInfo startInfo = new ProcessStartInfo();
startInfo.FileName = "WINWORD.EXE";
startInfo.Arguments = path;
Process.Start(startInfo);
有没有办法忽略空格?
try
path="\"Cash Report\\30-03-2012 01-11-07 Cash Flow Report.Docx\""
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)