List files in IFS iSeries directory

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vagueante
    New Member
    • Aug 2009
    • 10

    List files in IFS iSeries directory

    Hi,

    I need to do a daily process that has to copy (download), all the files from a iSeries folder.

    At the moment, if i know the filename i'm using the following code with the cwbx.dll

    Code:
     Dim dt As New cwbx.DatabaseTransfer
                dt.UserID = "user"
                dt.Password = "password"
    
                dt.Download("iSeriesName", "dir/filename", "outputfile")

    But how can i list all the files that exist in that dir, so that i can copy/download them all ?

    Thank you
  • tlhintoq
    Recognized Expert Specialist
    • Mar 2008
    • 3532

    #2
    I have no idea what a cwdb.dll is but...

    Read up on MSDN for the System.IO.Direc tory class
    Specifically the "GetFiles" method
    Exposes static methods for creating, moving, and enumerating through directories and subdirectories. This class cannot be inherited.

    Comment

    • vagueante
      New Member
      • Aug 2009
      • 10

      #3
      Originally posted by tlhintoq
      I have no idea what a cwdb.dll is but...
      Hi cwbx.dll, is an API to access iSeries, like reading DataQueue, transfering files etc.

      Since the iSeries file system is in IFS, i can't get the dir information.

      And i really need to know the files names of that dir.

      Thank you

      Comment

      • tlhintoq
        Recognized Expert Specialist
        • Mar 2008
        • 3532

        #4
        Use the namespace/method I told you about to get the file names, then pass them to your dll

        Comment

        • vagueante
          New Member
          • Aug 2009
          • 10

          #5
          I can get the filenames from a fat or ntfs directory, but to get those from the IFS system that iSeries use is not possible using the method's you've told me.

          that's my problem at the moment

          Comment

          • tlhintoq
            Recognized Expert Specialist
            • Mar 2008
            • 3532

            #6
            In your use is IFS
            Installable File System (OS/2 circa 1986 thru to NT)
            or Integrated Files System (Linux)
            or something else completely

            Does this help at all?

            Is IFS the files system on the iSeries server line?

            Comment

            • vagueante
              New Member
              • Aug 2009
              • 10

              #7
              iSeries Integrated File System (IFS)
              Like in this Forum thread, i can't use as a windows dir.

              As i can use API for download, i would like to use the same API to get the filename list, i just can't find a way to do it :(

              Comment

              Working...