调用WinRAR时出现的问题
我在调用WinRAR时,遇到了这样一个问题,不知道有没有人碰到过:
在winrar 命令格式中,是用空格来作为文件间隔的,而windows中有一个很特殊的文件夹Documents and Settings,winrar在运行时,会把它看成三个文件,导致出错,请问有什么解决办法?谢谢!
ShellExecute(handle,'open',pchar('winrar'),pchar('a D:\ttt D:\ttt.doc),nil, SW_HIDE);
时能正确运行,
而
ShellExecute(handle,'open',pchar('winrar'),pchar('a D:\ttt C:\Documents and Settings\ttt.doc),nil, SW_HIDE);
就不对了!