0

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.

mevsme
  • 441
  • 5
  • 15

1 Answers1

1

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

php "d:\Dropbox\sync.php" %1
mevsme
  • 441
  • 5
  • 15