$comspec
Posted by Ghost2-b
Saturday, September 25, 2004
Description: returns a - system environmental variable
returns "C:\WINNT\system32\cmd.exe" in win2k
if you have a 9x based OS can you test this for me and respond
alias comspec {
var %com = ExpandEnvironmentStrings, %res
.comopen %com WScript.Shell
if ($com(%com,%com,3,bstr,% $+ comspec%) != $null) { %res = $com(%com).result }
.comclose %com
return $shortfn(%res)
;; returns path to command line
}
returns "C:\WINNT\system32\cmd.exe" in win2k
if you have a 9x based OS can you test this for me and respond