Question How Can I create Directory in Unix

Hi ,

Please tell my how can I create a directory under Main directory named /output from Progress 4GL code. Sub directory name will be dynamic - loginuser.

TIA
-Philip-
 

Cringer

ProgressTalk.com Moderator
Staff member
I don't use unix myself so I can't guarantee it works, but is the UNIX statement what you are looking for? Failing that look at OS-COMMAND.
 

LarryD

Active Member
You can do this:

Code:
    FILE-INFO:FILE-NAME = "/output/" + loginusername.
    if FILE-INFO:FILE-TYPE = ?
    then do:
        os-command silent value( 'mkdir ' + "/output/" + loginusername ).
    end.
 

LarryD

Active Member
DOH! I totally forgot that one, Rob. And additionally, no error is generated if it already exists. Or you can check if there is another type of error by checking OS-ERROR.
 
Top