cmd.exe and powershell.exe PATH problems

Discussion in 'Windows 7 Help and Support' started by Pixima, Apr 3, 2012.

  1. Pixima

    Pixima New Member

    Joined:
    May 16, 2011
    Messages:
    16
    Likes Received:
    0
    I am trying to run powershell.exe in the cmd.exe prompt.
    error
    The error that comes out is unrecognized command.
    I go to System Properties -> Advanced -> Environmental Variables

    Under System Variables I find the variable Path.
    I add the path where the powershell.exe is.

    Shouldn't this solve the problem?
    Any suggests?

    Thanks
     
    #1 Pixima, Apr 3, 2012
    Last edited: Apr 3, 2012
  2. Saltgrass

    Saltgrass Excellent Member
    Microsoft Community Contributor

    Joined:
    Oct 16, 2009
    Messages:
    15,157
    Likes Received:
    393
    You don't want to run it by going to All Programs, Accessories, Windows Power Shell folder?
     
  3. Pixima

    Pixima New Member

    Joined:
    May 16, 2011
    Messages:
    16
    Likes Received:
    0
    I don't.

    I want to run it within a programming language.

    For example, if I call Python's subprocess, I want to run a Powershell command.
    I would have to execute 'powershell' before the command is ran.
    Powershell would be called in the 'cmd.exe'.
     

Share This Page

Loading...