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.
QtWS25 Last Chance

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
  • 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 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
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on 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

      • Login

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