A
A
Alex Alex2016-10-03 19:32:24
Delphi
Alex Alex, 2016-10-03 19:32:24

How to run bat with parameters?

Hello, tell me how to run bat with parameters
I try:

ShellExecute(Handle, 'open','ff-prompt.bat', PChar('ffmpeg -i "c:\fb.avi" -f mjpeg -ss 00:00:01 -vframes 1 "1.jpg" 2>&1'), nil, SW_SHOWNORMAL);

but does nothing

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Olgeir, 2016-10-04
@Olgeir

"ffmpeg -i \"c:\fb.avi\" -f mjpeg -ss 00:00:01 -vframes 1 \"1.jpg\" 2^>&1'"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question