Cannot locate the COMSPEC environment variable (Error 1412)

Visual FoxPro can't find an environment variable it needs. This error usually occurs when you try to run Visual FoxPro from within another program and MS-DOS environment variables are passed improperly.