WMEncoder.File

Windows Media Encoder SDK banner art

The File property retrieves an IWMEncFile object that can be used to specify the name of an archive file.

Syntax

IWMEncFile = WMEncoder.File

Parameters

This property takes no parameters.

Property Value

An IWMEncFile object.

Remarks

This property is read-only. Use the IWMEncFile object to specify and retrieve the name, directory and extension of the output file.

Example Code

' Create a WMEncoder object.
Dim Encoder As WMEncoder
Set Encoder = New WMEncoder

' Load a predefined configuration.
Encoder.Load ("C:\filename.wme")

' Retrieve an IWMEncFile object and override the name
' of the archive file specified in the predefined
' configuration.
Dim File As IWMEncFile
Set File = Encoder.File
File.LocalFileName = "C:\file_name.wmv"

Requirements

Reference: Windows Media Encoder

Library: wmenc.exe

See Also