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 8080895
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T16:33:16+00:00 2026-06-05T16:33:16+00:00

I would like to find out which version of an executable the CMD shell

  • 0

I would like to find out which version of an executable the CMD shell uses. In any unix shell, I would use which to find it.

Is there an equivalent command in one of the Windows shells?

  • 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-05T16:33:18+00:00Added an answer on June 5, 2026 at 4:33 pm

    Various.

    1. where is a direct equivalent:

      C:\Users\Joey>where cmd
      C:\Windows\System32\cmd.exe
      

      Note that in PowerShell where itself is an alias for Where-Object, thus you need to use where.exe in PowerShell.

    2. In cmd you can also use for:

      C:\Users\Joey>for %x in (powershell.exe) do @echo %~$PATH:x
      C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
      
    3. In PowerShell you have Get-Command and its alias gcm which does the same if you pass an argument (but also works for aliases, cmdlets and functions in PowerShell):

      PS C:\Users\Joey> Get-Command where
      
      CommandType     Name          Definition
      -----------     ----          ----------
      Alias           where         Where-Object
      Application     where.exe     C:\Windows\system32\where.exe
      

      The first returned command is the one that would be executed.

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

Sidebar

Related Questions

I would like to find out if any and which database links are being
I would like to know if there's a way in java to find out
Is there a way to find out which .Net version i.e. 1.1 or 2.0
I would like to find out is as3 is doing is doing anything in
I would like to find out how can I convert touch coordinate that I
I would like to find out if a scrollView is scrolled up or down.
I'm learning about change listeners and would like to find out why a part
Hi I am new to AspectJ and I would like to find out if
I'm kinda new to Dojo toolkit. There are certain issues which I would like
I would like to upgrade my FluentNHibernate to version 1.1, but I found out

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.