473,379 Members | 1,283 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,379 software developers and data experts.

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

Expand|Select|Wrap|Line Numbers
  1.  Dim dt As New cwbx.DatabaseTransfer
  2.             dt.UserID = "user"
  3.             dt.Password = "password"
  4.  
  5.             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
Sep 22 '09 #1
6 6252
tlhintoq
3,525 Expert 2GB
I have no idea what a cwdb.dll is but...

Read up on MSDN for the System.IO.Directory class
Specifically the "GetFiles" method
http://msdn.microsoft.com/en-us/libr...directory.aspx
Sep 22 '09 #2
@tlhintoq
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
Sep 22 '09 #3
tlhintoq
3,525 Expert 2GB
Use the namespace/method I told you about to get the file names, then pass them to your dll
Sep 22 '09 #4
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
Sep 22 '09 #5
tlhintoq
3,525 Expert 2GB
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?
Sep 22 '09 #6
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 :(
Sep 22 '09 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Jean-Paul Lauque | last post by:
Hello, I'm beginning in the ASP world... I would like to sort (descending) list of files in directory. Parameter is directory url. How I can to do that with ASP not ASP.NET.
4
by: david | last post by:
I basically use the following code to display the directory and file names in the WWWROOT, but can not show the virtual directory. ---- Dim path As String = Server.MapPath(x) Dim di As...
3
by: ReidarT | last post by:
I want to copy files in directory to another location like c:\dir1\*.* to f:\dir2 Do I need to copy file by file or can I just copy the whole directory regards reidarT
1
by: mmohanra | last post by:
I am trying to list files in a folder in a remote server. I am using Scripting.FileSystemObject. This seems to be really slow. After a long time the connection times out. Is there any other way to...
2
by: Alex | last post by:
Hello, I'm creating a program to parse a directory and all files within that directory (including subdirectories), but 'directoryinfo' only parses the current directory. Is it possible to have...
3
by: =?Utf-8?B?UHVyZSBIZWFydA==?= | last post by:
hi i need the code to move files from directory to another directory on sam local machine or to a network path, thank you. -- Ammar S. Mitoori IT Head QIMCO Co. Tel : +9744831199 Mobile :...
3
by: froditus | last post by:
Hello everyone, is it possible to list files from directory other than in apache web directory? my web folder is placed on c:/ and i put my files in windows directory "d:/files/images/". I...
3
by: sijugeo | last post by:
Which is the namespace which can be used to get the user files and directory details. Regards, Siju George
20
by: Netwatcher | last post by:
Hello, I've been trying to get a list of files from given directory in C++ (with win32) but i encountered some weird problems //test snippet #include <windows.h> #include <stdio.h> #include...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.