Hello,

I use FTP to return file names all the time.

Use the   "ls (disk"  FTP command and it will return a directory listing 
of all the files in your specified directory  to a file called LSOUTPUT on 
your AS/400.  Just read LSOUTPUT to see if the file you are looking for 
exists.

HTH,

Nick


Nick Radich
Sr. Programmer/Analyst
EPC Molding, Inc.
Direct  (320) 679-6683
Toll free  (800) 388-2155  ext. 6683
Fax  (320) 679-4516
nick_radich@xxxxxxxxxxxxxx



"Fisher, Don" <dfisher@xxxxxxxxxxxxx> 
Sent by: midrange-l-bounces@xxxxxxxxxxxx
09/07/06 08:11 AM
Please respond to
Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>


To
<midrange-l@xxxxxxxxxxxx>
cc

Subject
Verifying Existence of a File on a Server






I am creating an association between some iSeries data and files that 
reside on Windows servers.  When the file name is entered, I'd like to 
verify the file exists, but I'm not sure how.  F.T.P. won't work since it 
just returns the "226 - Transfer Complete" message whether the file exists 
or not.  I suppose I could write a little Visual Basic program that would 
update a file on the iSeries with a code.  My instincts tell me there must 
be a better way though.

Any assistance will be greatly appreciated.

Donald R. Fisher, III
Project Manager
RoomStore, Inc.
(804) 784-7600 ext. 2124
dfisher@xxxxxxxxxxxxx


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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.