$comspec
Posted by Ghost2-b
Saturday, September 25, 2004
Description: returns a - system  environmental variable


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
Responce:
Posted by Psycho
Monday, October 11, 2004 06:57pm PDT
09:56:18PM » (@Psycho) -e $comspec
09:56:20PM » (@MR2) --> ( $comspec ) == ( C:\WINDOWS\COMMAND.COM )
09:56:33PM » (@Psycho) -e Win $+ $os
09:56:33PM » (@MR2) --> ( Win $+ $os ) == ( Win95 )
Submit a comment
Oops! You need to login or register before you can post a comment!

ebaum's world