you need to use escape character for the slashes.
you need to use escape character for the slashes.
==========================signature=============== ==================
S.O.L.I.D principles (use them!):
https://en.wikipedia.org/wiki/SOLID_...iented_design)
Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.
Even after putting escape character it is not working. And the other thing what i observed is
1) The exe(exe without args)invokes only if i use startDetached(...) method but not start(...).
2) Even if the exe do not contains path and i try to execute the QProcess() plainly having all the required files in the current directory then also am not able to get the output. But if use something like this ,
Qt Code:
system(str.toAscii());To copy to clipboard, switch view to plain text mode
This works!!,But the problem is, this flashes the cmd window, which is not appreciated. Any inputs would be helpful. Thanks.
Please post the codeeven after putting escape character it is not working. And the other thing what i observed is
==========================signature=============== ==================
S.O.L.I.D principles (use them!):
https://en.wikipedia.org/wiki/SOLID_...iented_design)
Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.
did you use waitForFinished() before taking out the std output
yes. I tried that too. But there won't anything directed stdout, the confirmation is creation of the DBfile.db. And also there is no any stderror data too. Let me know if anything need to do.
I have used the same code posted above with small changes as suggested below,
First way:Second way:Qt Code:
To copy to clipboard, switch view to plain text modeQt Code:
To copy to clipboard, switch view to plain text mode
And also as said in the above post, even i dump all the files in the current directory then also there is no output, means creation of file but whick works with the 'Sytem(...) command.
Last edited by nikhilqt; 12th November 2010 at 11:24.
Guys, Please let me know if you have any inputs?
try this:
Qt Code:
To copy to clipboard, switch view to plain text mode
==========================signature=============== ==================
S.O.L.I.D principles (use them!):
https://en.wikipedia.org/wiki/SOLID_...iented_design)
Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.
Bookmarks