Admin Production ni-theme
Current Publication

DeleteAndRename

LabWindows/CVI

DeleteAndRename

int DeleteAndRename (const char sourcePathname[], const char destinationPathname[]);

Purpose

Deletes the file identified by destinationPathname. Renames the file identified by sourcePathname to destinationPathname.

Parameters

Input
Name Type Description
sourcePathname const char[] The pathname of the file to rename. If it is not an absolute pathname, the file is located relative to the current working directory.
destinationPathname const char[] The pathname of the file to delete and the pathname to rename the file currently identified by sourcePathname.

Return Value

Name Type Description
status int If the function was successful, it returns 0. Otherwise, it returns a negative error code. The error codes that can occur and the header files in which they are defined are listed below:

–12 Out of memory! (userint.h)
–93 Input/Output error. (userint.h)
–94 File not found. (userint.h)
–95 File access permission denied. (userint.h)
–97 Disk full. (userint.h)
–100 Bad pathname. (userint.h)

Additional Information

Library: Programmer's Toolbox

Include file: toolbox\toolbox.h

LabWindows/CVI compatibility: LabWindows/CVI 4.0 and later