Visual Basic: Multimedia MCI Control

FileName Property (Multimedia MCI Control)

See Also   Example   Applies To

Specifies the file to be opened by an Open command or saved by a Save command. To change the FileName property at run time, you must close and reopen the Multimedia MCI control.

Syntax

[form.]MMControl.FileName[ = stringexpression$]

Remarks

The argument stringexpression$ specifies the file to be opened or saved.

If a computer has more than one CD-ROM drive installed, you can designate which drive to use by setting the FileName property to the drive, as shown below:

MMControl1.DeviceType = "CDAudio"
MMControl1.FileName = "E:" 
MMControl1.Command = "Open"

Data Type

String