473,398 Members | 2,812 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,398 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 6259
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...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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?
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...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.