Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How To Send Enter Key To Cmd.exe Using Qprocess.
Forum Updated to NodeBB v4.3 + New Features

How To Send Enter Key To Cmd.exe Using Qprocess.

Scheduled Pinned Locked Moved Unsolved General and Desktop
qprocesscmdenter key
2 Posts 2 Posters 1.8k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mjzarrin
    wrote on 21 Jan 2016, 10:05 last edited by
    #1

    Hello My Friends
    I Write a Windows Format Program. Before, I Using Windows system Command To Do This.
    The Problem is, It Opened Cmd.exe And Then Ask to Pressing Enter Key To Complete Format Action.
    I Change My Way To Using QProcess Or WinExec And I Need Send Enter Key After Cmd request Enter Key Or Just After a second. Furthermore If This Action Execute On Background Is Ideal For Me.
    How I Can Do This.
    Thank You Very Much.

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mrjj
      Lifetime Qt Champion
      wrote on 21 Jan 2016, 12:03 last edited by
      #2

      Hi
      The format command takes a /y to make it run without asking. (at least on win 7)
      Be carefull when testing it.!. :)

      1 Reply Last reply
      0

      2/2

      21 Jan 2016, 12:03

      • Login

      • Login or register to search.
      2 out of 2
      • First post
        2/2
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved