Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Using Powershell as COMSPEC

$
0
0

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


Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>