Look for the proper "invalid function" error code from cmd.exe.