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

Chapter 7 File Manager Functions

Moving and Deleting Files and Directories

FMove

syntax

MgErr

FMove(oldPath, newPath);

FMove moves a file or renames it if the new path indicates the file is to remain in the same directory.

 

Parameter

Type

Description

 

oldPath

Path

Path of the file or directory you want to move.

 

newPath

Path

Path, including the name of the file or directory,

 

 

 

where you want the file or directory to be moved.

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

The original file could not be found.

 

fNoPerm

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

 

fDiskFull

Disk is full.

 

 

fDupPath

The new file already exists.

 

fIsOpen

The original file is open for writing.

 

fTMFOpen

Too many files open.

 

mFullErr

Insufficient memory.

 

fIOErr

Read, write, or unspecified I/O error occurred.

 

 

 

 

FRemove

syntax MgErr FRemove(path);

FRemove deletes a file or a directory. If an error occurs, this function does not remove the file or directory.

Parameter

Type

Description

path

Path

Path of the file or directory you want to delete.

returns

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

Error

Description

 

mgArgErr

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

LabVIEW Code Interface Reference Manual

7-20

National Instruments Corporation

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