safe shell command
Alex Rice
alrice at arcplanning.com
Thu Feb 20 15:45:01 EST 2003
I have gleaned these tidbits from the list. Can anyone add to this code
for making sure the shell command is going to run correctly, minimized
on all windows variants? Does anyone know if Win XP has one of these
two variants or does it have another "command" command?
on startup
if the platform is "win32" then
put the shellCommand into tShellCmd
if matchText(tShellCmd, "command\.com$") then
put space & "/m" after tShellCmd
set the shellCommand to tShellCmd
else if matchText(tShellCmd, "cmd\.exe$") then
put space & "/MIN" after tShellCmd
set the shellCommand to tShellCmd
end if
end if
end startup
Thanks in advance
Alex Rice, Software Developer
Architectural Research Consultants, Inc.
alrice at ARCplanning.com
alrice at swcp.com
More information about the use-livecode
mailing list