0

I have a vbscript that uses a WScript.Shell instance and .Run("ffmpeg.exe -params",,True) to fire off a ffmpeg video conversion.

When the conversion is complete, the cmd.exe window stays open at a typical prompt, and i was curious if it is possible to auto-close that child cmd window when it's done doing whatever it's doing.

Thanks.

Mark

2
Contributors
2
Replies
3
Views
7 Years
Discussion Span
Last Post by marky-b
0

Well first off, how would you tell if this program is done? If you know the answer to that, switch your code to ShellExecute API and WaitForSingleObject API...

Good Luck

0

So i solved my problem by writing out the "ffmpeg.exe -params" to a batch file and using WScript.Shell .Run to execute the batch file.

Works like a charm.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.