更新时间:2023-02-20 14:55:14
我的假设是您找到的命令未加双引号,因此需要转义字符 ^
才能起作用.根据我以前的建议,将命令括在双引号中,以下是我的建议,即.删除插入符号:
My assumption is that the command you found was not doublequoted and therefore required an escape character, ^
, to function. Based upon my previous advice, of enclosing the command within doublequotes, the following is my suggestion, i.e. removing the caret:
@Start "" "%__AppDir__%WindowsPowerShell\v1.0\powershell.exe" -NoLogo -NoProfile -Command "(Add-Type '[DllImport(\"user32.dll\")]public static extern int SendMessage(int hWnd,int hMsg,int wParam,int lParam);' -Name a -Pas)::SendMessage(-1,0x0112,0xF170,2)"