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.