Click or drag to resize

PrinterUtilListFiles Method

Retrieves the names of the files which are stored on the device.

Namespace: Zebra.Sdk.Printer
Assembly: SdkApi.Core (in SdkApi.Core.dll) Version: 3.0.3271
Syntax
public static string[] ListFiles(
	string connectionString,
	string filter
)

Parameters

connectionString  String
The connection string. (May be null)
filter  String
Filter for returned files. (e.g. "E:*.ZPL", "*:*.*", "R:MYFILE.*")

Return Value

String
List of file names on the printer.
Exceptions
ExceptionCondition
ConnectionExceptionIf there is an error connecting to the device.
ZebraPrinterLanguageUnknownExceptionIf the printer language could not be determined.
ZebraIllegalArgumentExceptionIf there is an error parsing the directory data returned by the device.
NotALinkOsPrinterExceptionThis feature is only available on Link-OS™ printers.
Remarks
See ConnectionBuilder for the format of connectionString.
See Also