Chris Betti
Chris Betti

Reputation: 2923

What is the syntax for invoking GnuWin32's find exec on windows cmd shell?

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

find: missing argument to `-exec'

What is the proper syntax?

Upvotes: 0

Views: 2167

Answers (1)

Chris Betti
Chris Betti

Reputation: 2923

Call GnuWin32 find.exe this way:

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

Escaping the semicolon is unnecessary in the Windows Command Prompt.

Upvotes: 1

Related Questions