winapi - Using Powershell as COMSPEC -
i trying setup comspec powershell default interpreter. helps me handle situation if current directory unc applications being launched using system(..). have thirdparty tools support unix utilities under windows. 1 of them ls.exe. in testing, found system("ls -al") being picked powershell instead of thirdparty directory in path. there way can avoid using powershell alias through environment variable? or use custom alias redirecting thirdparty directory environment variable? or there way stop using alias powershell , use interpreter environment variable?
-karthik
the command get-item alias:ls
show alias ls
item of drive alias
. remove item can use : remove-item alias:ls
.
now bit unix shell you've got concept of profle file can put command it's run prior shell execution. more information profile in windows powershell owner's manual.
Comments
Post a Comment