locked
Using Powershell as COMSPEC RRS feed

  • Question

  • Hi Folks,

    I am trying to setup COMSPEC as powershell as default interpreter. This helps me to handle the situation if the current directory is an UNC for applications being launched using system(..).  We also have thirdparty tools for to support unix utilities under Windows. One of them is ls.exe.  In my testing, I found system("ls -al") was being picked from Powershell instead of the thirdparty directory which is already in PATH. Is there any way I can avoid using powershell alias through an environment variable? Or use a custom alias redirecting to thirdparty directory by an environment variable? Or is there any way to stop using alias from powershell and just use as interpreter by environment variable?

    -Karthik


    Karthik

    Friday, May 16, 2014 6:10 PM