0

Invoking GnuWin32's find.exe . -name "foo" -exec backup.bat {} \; produces the following error:

find: missing argument to `-exec'

What is the proper syntax?

Chris Betti
  • 2,721
  • 2
  • 27
  • 36

1 Answers1

1

Call GnuWin32 find.exe this way:

find.exe . -name "foo" -exec backup.bat {} ;

Escaping the semicolon is unnecessary in the Windows Command Prompt.

Chris Betti
  • 2,721
  • 2
  • 27
  • 36