yangyunzhao
21st August 2009, 03:53
In my program, I use QProcess::execute() to execute some cmds.
Such as
QString x = "copy a.txt b.txt"
QProcess::execute(x);
It works OK.
But if the "x" has non-ascii.Such as
QString x = "copy c:\中文\a.txt c:\中文\b.txt";
QProcess::execute(x).
It doesn't has any effect.
Could you give me some helps? Thans a lot!!!
Such as
QString x = "copy a.txt b.txt"
QProcess::execute(x);
It works OK.
But if the "x" has non-ascii.Such as
QString x = "copy c:\中文\a.txt c:\中文\b.txt";
QProcess::execute(x).
It doesn't has any effect.
Could you give me some helps? Thans a lot!!!