Subject: | |
From: | |
Reply To: | |
Date: | Wed, 18 Nov 1998 08:35:30 -0700 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
I previously wrote:
>
> Is there any way through FINFO to tell if a file is permanent or
> temporary? If you simply do an FINFO("<filename>","EXISTS"), it
> returns true regardless of the domain.
>
Thanks for all of the input. The original intent of my knowing whether
it was permanent or temporary was to determine what format of the purge
command I needed to issue in order to purge a file within a command
file. [The file could exist in either domain.]
Based on all of the input, I implemented the following:
IF (FINFO("!PFILE","EXISTS")) THEN
IF ((FINFO("!PFILE",-13) MOD 8) = 2) THEN
PURGE !PFILE,TEMP
ELSE
PURGE !PFILE
ENDIF
ENDIF
For all of the other FINFO options, the formatted strings and integer
returns returned identically mapped responses. I did not realize that
the FMTOPTIONS returns a string that does not include the TEMP / PERM
designator (but the integer value does).
Thanks for your input...
Glenn
> --
> ______________
> | Navigators | Under contract to Hewlett-Packard ISG (Greeley, CO)
> | |) |
> | | ) | Glenn J. Koster, Sr. [log in to unmask]
> | | ) | Managed Business Solutions http://www.mbsnav.com
> | | ) | 214 S. College, Suite 201 970 350-5337
> | |---- | Fort Collins, CO 80524 970 224-1016
> | ============ |
> | \__________/ |
> | of Change | aka: [log in to unmask]
> |______________| home: http://members.aol.com/MichiTex
--
______________
| Navigators | Under contract to Hewlett-Packard ISG (Greeley, CO)
| |) |
| | ) | Glenn J. Koster, Sr. [log in to unmask]
| | ) | Managed Business Solutions http://www.mbsnav.com
| | ) | 214 S. College, Suite 201 970 350-5337
| |---- | Fort Collins, CO 80524 970 224-1016
| ============ |
| \__________/ |
| of Change | aka: [log in to unmask]
|______________| home: http://members.aol.com/MichiTex
|
|
|