如何将 \\”<?php\\” 从 .BAT 回显到文件中 | 珊瑚贝

how to echo “<?php” into a file from a .BAT


我知道可能有更好的方法来做到这一点,但我不知道如何做到这一点……

我想添加

1
<?php

到一个文件中,我目前有一个带有这一行的bat文件

1
echo <?php >> config.php

但是当我运行 bat 文件时它会抱怨语法,我已经尽可能多地使用它,但我无法得到

真心希望有人能帮帮我

谢谢

  • 使用 .bat 文件运行 php 脚本的可能重复项
  • 我不想从那个 bat 运行 php,但是通过 bat 文件将新行回显到我现有的文件中,对不起,我刚刚注意到它已经删除了我的一些脚本,我会看看我是否可以修复它..


您需要使用 ^ 转义字符将 < 视为文字字符串而不是重定向运算符。

1
echo ^<?php >>config.php
  • 你绝对的传奇:)


来源:https://www.codenong.com/33707791/

微信公众号
手机浏览(小程序)

Warning: get_headers(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(): Failed to enable crypto in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(https://static.shanhubei.com/qrcode/qrcode_viewid_10056.jpg): failed to open stream: operation failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57
0
分享到:
没有账号? 忘记密码?