Powershell and path environment variable -


i powershell use environment variable "path" resolve executables. i'm sure should able this, here get.

ps c:\> $psversiontable.psversion  major  minor  build  revision -----  -----  -----  -------- 4      0      -1     -1  ps c:\> ${env:path} = "c:\windows\system32\" ps c:\> ls ${env:path}\cmd.exe   directory: c:\windows\system32   mode                lastwritetime     length name ----                -------------     ------ ---- -a---        22/08/2013   8:03 pm     355840 cmd.exe  ps c:\> & cmd.exe & : term 'cmd.exe' not recognized name of cmdlet, function, script file, or operable program. check spelling of name, or if path included, verify path correct , try again. @ line:1 char:3 + & cmd.exe +   ~~~~~~~ + categoryinfo          : objectnotfound: (cmd.exe:string) [], commandnotfoundexception + fullyqualifiederrorid : commandnotfoundexception 

run get-command -type application see powershell seeing valid executables.

you may find clue what's going on, such of listed applications have (or don't have) extension, indicate problem pathext environment variable.


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -