Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Labview Code Interface Reference Manual.pdf
Скачиваний:
33
Добавлен:
29.05.2015
Размер:
1.13 Mб
Скачать

Chapter 7 File Manager Functions

The function fills the (AZ) handle passed in list with a CPStr, where the cnt field specifies the number of concatenated Pascal strings that follow in the str[] field. See the Dynamic Data Types section of Chapter 5, Manager Overview, for a description of the CPStr data type. If typeH is not NULL, the function fills the AZ handle passed in typeH with the file type information for each file name or directory name stored in list.

 

Parameter

Type

Description

 

path

Path

Path of the directory whose contents you want to

 

 

 

determine.

 

list

CPStrHandle

Application zone handle in which FListDir

 

 

 

stores a series of concatenated Pascal strings,

 

 

 

preceded with a 4-byte integer field, cnt, that

 

 

 

indicates the number of items in the buffer.

 

typeH

FileType

Application zone handle in which FListDir

 

 

 

stores a series of FileType records. If typeH is

 

 

 

not NULL, then FListDir stores one FileType

 

 

 

record in typeH for each Pascal string in list. The

 

 

 

nth FileType in typeH denotes the file type

 

 

 

information about the file or directory named in the

 

 

 

nth string in list. See the File Manager Data

 

 

 

Structures section of this chapter for a description of

 

 

 

the FileType data type.

returns

MgErr, which can contain the errors in the following list.

 

Error

Description

 

 

 

mgArgErr

A bad argument was passed to the function. Verify path.

 

fNotFound

Directory not found.

 

fNoPerm

Access denied (file/directory/disk is locked/protected).

 

mFullErr

Insufficient memory.

 

fIOErr

Unspecified I/O error occurred.

 

 

 

 

 

FNewDir

syntax MgErr FNewDir(path, permissions);

FNewDir creates a new directory with the specified permissions. If an error occurs, the function does not create the directory.

Parameter

Type

Description

path

Path

Path of the directory you want to create.

LabVIEW Code Interface Reference Manual

7-18

National Instruments Corporation

Соседние файлы в предмете [НЕСОРТИРОВАННОЕ]