Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8371447
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T14:09:46+00:00 2026-06-09T14:09:46+00:00

I have been looking on information about exec cmd.exe, but I cannot find anything

  • 0

I have been looking on information about exec cmd.exe, but I cannot find anything helpful. Can anyone explain to me the following code:

exec cmd.exe /c start /wait $buildLoc\\setup.exe /extract_all:C:/setup
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T14:09:47+00:00Added an answer on June 9, 2026 at 2:09 pm

    Let’s break it down:

    exec cmd.exe /c start /wait $buildLoc\\setup.exe /extract_all:C:/setup
    #^^^
    

    The exec command starts a subprocess.

    exec cmd.exe /c start /wait $buildLoc\\setup.exe /extract_all:C:/setup
    #    ^^^^^^^^^^
    

    cmd.exe is a windows “batch” shell, The /c flag asks it to run its arguments as a command.

    exec cmd.exe /c start /wait $buildLoc\\setup.exe /extract_all:C:/setup
    #               ^^^^^^^^^^^
    

    The start command, built into cmd.exe, is also a way to get another program to start. The /wait flag tells it to wait until the started program ends.

    exec cmd.exe /c start /wait $buildLoc\\setup.exe /extract_all:C:/setup
    #                           ^^^^^^^^^
    

    A regular TCL variable; it will be expanded inside TCL.

    The rest is whatever the setup.exe program does (which is who knows what…)

    Without knowing a little more about the program being run here (see below) it’s hard to say exactly why the intermediate exec.cmd /c start /wait was needed; I’d guess that the cmd.exe is to load all of the system’s default environment (instead of using the environment inherited from the tcl program) and the start is to open a terminal window so the output of the setup.exe program is shown to the user.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been looking everywhere but could not find a tutorial for this. I
I have been trying to find some more information about the next Microsoft Dynamics
Have been looking on some tutorials for drawing canvas using SurfaceView, but the only
I have been looking online to find documentation for the function in QTP and
I have been looking into backbone.js and I can't seem to figure out how
I have been looking for an answer to this on Stack Overflow, but I
I've been looking around on-line for a solution to this, but I can't seem
I have been looking for information on how to authenticate to the facebook api
I've been looking around for information about XMPP and JavaScr-er, ECMAScript and XMPP. After
I have been looking for a way to add the information (string) from a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.