Correct shell command

curry curry at kagi.com
Sat Nov 2 04:59:00 EST 2002


I'm trying to figure out a reliable way to set the user's 
shellcommand properly for his or her system. Is "cmd.exe" always the 
right shell for Windows 2K and XP?

I've been thinking along these lines:

on setshell
   set the hideconsolewindows to true
   get shell("vol")
end setshell

on errordialog x
   if "setshell" is in x then
     set the shellcommand to "cmd.exe"
   end if
end errordialog

Would something like this be dependable? Is there a better way?

Thanks,

Curry Kenworthy




More information about the use-livecode mailing list