diff --git a/src/xvaga/xvtmail.cpp b/src/xvaga/xvtmail.cpp index 83a836ab0..f8e5a27b7 100755 --- a/src/xvaga/xvtmail.cpp +++ b/src/xvaga/xvtmail.cpp @@ -396,7 +396,7 @@ BOOLEAN xvt_powermail_send(const char* to, const char* cc, const char* ccn, file.Close(); wxString command; - command << "PowerShell -ExecutionPolicy ByPass -NonInteractive -NoProfile -Command \"& {" << powerFile << "; exit $LastExitCode }\""; + command << R"(PowerShell -ExecutionPolicy ByPass -NonInteractive -NoProfile -Command "&{)" << powerFile << R"(; exit $LastExitCode }")"; BOOLEAN sys_command = (BOOLEAN)system(command); if (!sys_command) @@ -412,4 +412,4 @@ BOOLEAN xvt_powermail_send(const char* to, const char* cc, const char* ccn, } } return sys_command; -} \ No newline at end of file +}