WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Sample code
plus

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Wait for AVI to finish

 Keywords: Wait AVI finish complete

Question:

How do I have my winbatch script wait for my .AVI to complete. I would also like to run it fullscreen.

Answer:

The PlayMedia function can handle launching the .AVI file. You will need to pass the WAIT and FULLSCREEN arguements in the command string.
AVI = FileNameShort("C:\AVIs\babycha2.avi")
PlayMedia('play %AVI% FULLSCREEN WAIT')
Message(AVI,'Completed') 
More info on the Syntax of Command Strings

MCI command strings use a consistent verb-object-modifier syntax. Each command string includes a command, a device identifier, and command arguments. Arguments are optional for some commands and required for others.

A command string has the following form:

command device_id arguments

These components contain the following information:

The command specifies an MCI command, such as open, close, or play. The device_id identifies an instance of an MCI driver. The device_id is created when the device is opened. The arguments specify the flags and variables used by the command. Flags are keywords recognized with the MCI command. Variables are numbers or strings that apply to the MCI command or flag.

For example, the play command uses the arguments "from position" and "to position" to indicate the positions at which to start and end play. You can list the flags used with a command in any order. When you use a flag that has a variable associated with it, you must supply a value for the variable.

Unspecified (and optional) command arguments assume a default value.


Article ID:   W14950
File Created: 2003:05:28:10:22:38
Last Updated: 2003:05:28:10:22:38