Results 1 to 8 of 8

Thread: QProcess issue in executing a exe with command line arguments

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #6
    Join Date
    Jan 2008
    Location
    Bengaluru
    Posts
    144
    Thanks
    8
    Thanked 7 Times in 7 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Default Re: QProcess issue in executing a exe with command line arguments

    Quote Originally Posted by MrDeath View Post
    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.

    Quote Originally Posted by high_flyer View Post
    Please post the code
    I have used the same code posted above with small changes as suggested below,

    First way:
    Qt Code:
    1. QString sExeName = "\"D:\\app 1\\app.exe\"";
    To copy to clipboard, switch view to plain text mode 
    Second way:
    Qt Code:
    1. QString sExeName = "\"D:/app 1/app.exe\"";
    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.

Similar Threads

  1. Replies: 1
    Last Post: 7th September 2010, 15:49
  2. Replies: 3
    Last Post: 23rd February 2010, 04:33
  3. Internal Qt4 Standards for Command Line Arguments
    By wswartzendruber in forum Newbie
    Replies: 3
    Last Post: 8th October 2009, 07:16
  4. QTest and Command Line Arguments
    By ManuMies in forum Qt Programming
    Replies: 2
    Last Post: 23rd April 2009, 12:32
  5. Retrieving command line arguments inside a Qt application
    By prykHetQuo in forum Qt Programming
    Replies: 5
    Last Post: 14th February 2009, 14:28

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.