Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- CA-Clipper Tools . Book 4-Appendices - <b>nnetsallst()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 NNETSALLST()
 Determines the list of recoverable files (Netware 3.x only)
------------------------------------------------------------------------------
 Syntax

     NNETSALLST([<cPath>]) --> aFiles

     Netware: 2.2 and 3.11

 Argument

     <cPath>  Designates the directory on a server volume in which the
     recoverable files are searched.  The default value designates the
     current directory on the current drive.

 Returns

     NNETPSQL() returns an array with subarray (two-dimensional array).  Each
     subarray contains information about a recoverable file.  For the
     subarray structure, see the following table:

     Table 23.16:  NNETSALLST() Subarray Structure
     ------------------------------------------------------------------------
     Position     Metasymbol     CTNNET.CH      Definition
     ------------------------------------------------------------------------
     1            cName          SAL_NAME       File name
     2            cSize          SAL_SIZE       File size
     3            dDate          SAL_DATE       Salvage date
     4            cTime          SAL_TIME       Salvage time
     5            cDeletor       SAL_DELETOR    Deletor
     ------------------------------------------------------------------------

     If an error occurs, the function returns an empty array.

 Description

     NOVELL NET SALVAGE LIST
     Files on a server volume that are deleted within DOS or within an
     application are logically marked for deletion and can be recovered with
     the Novell utility SALVAGE or the CA-Clipper Tools function
     NNETSALVAG().  NNETSALLST() returns a list of all files in the directory
     <cPath> that can be recovered.  This service is only available under
     Netware 3.x.

 Examples

     .  Determine the list of recoverable files in L:\DATA.  Display
        the name of the files and the name of the user that deleted these
        files:

        #include "ctnnet.ch"

        aFiles=NNETSALLST('L:\DATA')

        FOR i=1 TO LEN(aFiles)
           ? aFiles[i,SAL_NAME],aFiles[i,SAL_DELETOR]
        NEXT i

     .  Purge all recoverable files in L:\DATA:

        #include "ctnnet.ch"

        aFiles=NNETSALLST('L:\DATA')

        FOR i=1 TO LEN(aFiles)
           NNETPURGE('L:\DATA\'+aFiles[i,SAL_NAME])
        NEXT i

See Also: NNETSALVAG()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson