ITPub博客

首页 > IT职业 > IT生活 > Progress syntax : How to Determine if a Directory Exists!

Progress syntax : How to Determine if a Directory Exists!

原创 IT生活 作者:sdvingo 时间:2007-07-09 22:37:32 0 删除 编辑
Fixes: In order to determine if a particular directory exists, use the FILE-INFO handle.

For example, the code:
/* Set the directory name in question */
FILE-INFO:FILE-NAME = "dirname".

/* display the attributes of "dirname" */
MESSAGE FILE-INFO:FILE-TYPE VIEW-AS ALERT-BOX.

will display 'D' if the directory exists and a '?' if it does not exist.

如果存在的目录则显示"DRW" , 如果存在文件"FRW",假如是不存在的文件和目录则为? RW应该为可读写.

[@more@]

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/443058/viewspace-925504/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论
  • 博文量
    74
  • 访问量
    146925