Permission denied for OS-CREATE-DIR NO-ERROR

tisayakorn

New Member
Hi, this is very weird and i'm wondering if anyone has experienced it.

it happens on a client's machine with Progress 9.1E on XP.

When running this
OS-CREATE-DIR 'c:\temp'.
DISPLAY OS-ERROR.
the result is 0 which is expected since c:\temp already exists.

but when running this
OS-CREATE-DIR 'c:\temp' NO-ERROR.
DISPLAY OS-ERROR.
the result is 8 (permission denied) which is totally absurd. if I run that for a non existing directory, e.g. c:\temp\1, the directory will be created with no problem but OS-ERROR still returns 8.

really appreciate your help.

Kevin Tisayakorn
 
OS-CREATE-DIR does not have a NO-ERROR option. It does support multiple directory names being specified. And Progress does not require file names to be enclosed by VALUE() nor quoted -- they can also be "naked" text. So the extraneous NO-ERROR is being taken as a directory name that you are trying to create.
 
ahhh. that makes much more sense to me now. c:\temp was created with no problem but my client probably doesn't have permission to create folders in the root directory, thus resulting in the permission error.

the only piece of puzzle for me to solve is why it happens only occasionally ...

thanks for your help, guys!
 
Back
Top