| 695 | } |
| 696 | |
| 697 | bool IsCmdRedirection(LPCWSTR asParameters) |
| 698 | { |
| 699 | if (IsStrEmpty(asParameters)) |
| 700 | return false; |
| 701 | if (wcspbrk(asParameters, REDIRECTION_CMD_CHARACTERS) == nullptr) |
| 702 | return false; |
| 703 | |
| 704 | CmdArg next; |
| 705 | const wchar_t* nextStart = nullptr; |
| 706 | const wchar_t* param = asParameters; |
| 707 | while ((param = NextArg(param, next, &nextStart)) != nullptr) |
| 708 | { |
| 709 | if (wcspbrk(next.c_str(L""), REDIRECTION_CMD_CHARACTERS) == nullptr) |
| 710 | continue; |
| 711 | if (!next.m_bQuoted) |
| 712 | return true; |
| 713 | } |
| 714 | |
| 715 | return false; |
| 716 | } |
| 717 | |
| 718 | bool IsNeedCmd(bool bRootCmd, LPCWSTR asCmdLine, CEStr &szExe, NeedCmdOptions* options /*= nullptr*/) |
| 719 | { |