如何将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 system32 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>

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

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