duanque3125 2019-05-24 22:19
浏览 83

如何将PHP参数传递到system32文件夹中的bat文件[复制]

This question already has an answer here:

I've created a bat file php "d:\Dropbox\sync.php" Then I put this file into <kbd>system32</kbd> folder to be able to call it anywhere in my system. sync.php needs an argument.

When I enter some certain folder in explorer and type in cmd sync arg1 my script says it has no args, but it works if I do in the common way: call it directly without bat.

</div>
  • 写回答

1条回答 默认 最新

  • doulu1914 2019-05-24 22:43
    关注

    You need to use %1 in the <kbd>sync.bat</kbd> file.
    Just like this:

    php "d:\Dropbox\sync.php" %1
    
    评论

报告相同问题?

悬赏问题

  • ¥15 python:excel数据写入多个对应word文档
  • ¥60 全一数分解素因子和素数循环节位数
  • ¥15 ffmpeg如何安装到虚拟环境
  • ¥188 寻找能做王者评分提取的
  • ¥15 matlab用simulink求解一个二阶微分方程,要求截图
  • ¥30 乘子法解约束最优化问题的matlab代码文件,最好有matlab代码文件
  • ¥15 写论文,需要数据支撑
  • ¥15 identifier of an instance of 类 was altered from xx to xx错误
  • ¥100 反编译微信小游戏求指导
  • ¥15 docker模式webrtc-streamer 无法播放公网rtsp