LabWindows/CVI

Content Type
Programming Language
Current manual

MakeDir

MakeDir

int MakeDir (char directoryName[]);

Purpose

Creates a new directory based on the specified directory name.

Note    You can create only one directory at a time.

Example Code

/* Make a new directory named \DATA\WAVEFORM on drive C */
/* assuming that C:\DATA does not exist */
MakeDir ("C:\DATA");
MakeDir ("C:\DATA\WAVEFORM");

Parameters

Input
Name Type Description
directoryName char [] The pathname of the new directory.

Return Value

Name Type Description
result int The result of the call.

Code Description
0 Success.
-1 One of the path components not found.
-3 General I/O error occurred.
-4 Insufficient memory to complete the operation.
-5 Invalid path; for example, c:filename.
-6 Access denied.
-8 Disk is full.
-9 Directory or file already exists with same pathname.

Additional Information

Library: Utility Library

Include file: utility.h

LabWindows/CVI compatibility: LabWindows/CVI 3.0 and later

Was this information helpful?

Previous

SetDir

Previous

SetDir