Here's a couple wrappers I just got done writing.  I don't know if they will
perform how you are needing, but you can research the IBM API's at the Info
Center.  I believe they work with directories and files, but I have only
tested them with files.

 
//--------------------------------------------------------------------------
------------------
      // @Name -
      // @Author - Aaron Bartell
      // @Description -
      // @Usage -
 
//--------------------------------------------------------------------------
------------------
     P IFS_copy...
     P                 B                   EXPORT
     D IFS_copy...
     D                 PI            10I 0
     D  pCurName                    256A   Value
     D  pNewName                    256A   Value

     D copy            Pr            10I 0 ExtProc('Qp0lRenameKeep')
     D  curName                        *   Value Options(*String)
     D  newName                        *   Value Options(*String)
      /Free

       Return copy(%Trim(pCurName): %Trim(pNewName));

      /End-Free
     P IFS_copy...
     P                 E


 
//--------------------------------------------------------------------------
------------------
      // @Name -
      // @Author - Aaron Bartell
      // @Description -
      // @Usage -
 
//--------------------------------------------------------------------------
------------------
     P IFS_move...
     P                 B                   EXPORT
     D IFS_move...
     D                 PI            10I 0
     D  pFrom                       256A   Value
     D  pTo                         256A   Value

     D move            Pr            10I 0 ExtProc('Qp0lRenameUnlink')
     D  from                           *   Value Options(*String)
     D  to                             *   Value Options(*String)
      /Free

       Return move(%Trim(pFrom): %Trim(pTo));

      /End-Free
     P IFS_move...
     P                 E

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.