Make a dir witth progress

Chris Kelleher

Administrator
Staff member
Cabral-

You can use the OS-CREATE-DIR command to create a new directory:
Code:
DEFINE VARIABLE stat AS INTEGER.
DEFINE VARIABLE dir_name AS CHARACTER FORMAT "x(64)"
LABEL "Enter the name of the directory you want to create.".

UPDATE dir_name.
OS-CREATE-DIR VALUE(dir_name).
stat = OS-ERROR.
IF stat NE 0 THEN
   MESSAGE "Directory not created. System Error #" stat.
Hope this helps,
-Chris
 

Cabral

New Member
Tanks, ProgressTalk....

Kind Regards,
Cabral.

Originally posted by progresstalk
Cabral-

You can use the OS-CREATE-DIR command to create a new directory:
Code:
DEFINE VARIABLE stat AS INTEGER.
DEFINE VARIABLE dir_name AS CHARACTER FORMAT "x(64)"
LABEL "Enter the name of the directory you want to create.".

UPDATE dir_name.
OS-CREATE-DIR VALUE(dir_name).
stat = OS-ERROR.
IF stat NE 0 THEN
   MESSAGE "Directory not created. System Error #" stat.
Hope this helps,
-Chris
 
Top