Results 1 to 12 of 12

Thread: Start a exe file with parameters

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Posts
    273
    Thanks
    42
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Red face Start a exe file with parameters

    Hello Everybody,

    i am using a exe file to push some software to clients..

    now i am using a bat file with some parameters like:

    psexec.exe \\hostname -u etrust - p etrust01 \\hostname\c$\notes.exe

    My question: its possible to run this exe with my parameters without uing a bat file or dos?

    If yes it would be very nice..

    Thnanks a lot for a answer

    Im trying like this:
    Qt Code:
    1. void MainWindow::startpsexec()
    2. {
    3.  
    4. list << "\\\\stchps426 " << "-u " << "etrust " << "-p " << "etrust01 " << "-i " << "\\\\stchps426\\c$\\notes.exe";
    5.  
    6. QProcess process;
    7. process.execute("psexec.exe", list);
    To copy to clipboard, switch view to plain text mode 
    but is not working
    Last edited by raphaelf; 16th June 2008 at 10:15.
    Think DigitalGasoline

Similar Threads

  1. QtHelp Module - registering compressed help file gives error
    By Ankitha Varsha in forum Qt Programming
    Replies: 1
    Last Post: 16th May 2008, 14:14
  2. Set up the Qt4.3.2 with Visual Studio 2005
    By lamoda in forum Installation and Deployment
    Replies: 6
    Last Post: 30th January 2008, 06:51
  3. file renaming on windows
    By jdd81 in forum Qt Programming
    Replies: 9
    Last Post: 2nd October 2007, 19:41
  4. qt-3.3.8 fail in scratchbox
    By nass in forum Installation and Deployment
    Replies: 0
    Last Post: 25th May 2007, 15:21
  5. Replies: 2
    Last Post: 27th March 2007, 12:09

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.