473,466 Members | 1,565 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How to read FTP folder contents names without downloading them using Asp.net 1.1

Hello,
i am using Asp.net application to read contents of FTP folder. I
just want to have names of all folders/files that are inside FTP
directory. So for that i don't want to download any contents from that
FTP , i just need to read it.For e.g. if i want to read names of all
folders/files from this url:

ftp://mediaftp.wiley.com/public/ link how can i do this.
Can anyone please throw some light on this how it's possible?

Thanks in advance for any suggestions in this issue.
Ankita

Nov 1 '06 #1
2 4206
See
http://www.codeproject.com/cs/internet/ftplib.asp
/// <summary>
/// Gets a file list only
/// </summary>
/// <returns>ArrayList of files only</returns>
public ArrayList ListFiles()
{
}

This is for 1.1
"ankita" <an*******@gmail.comwrote in message
news:11*********************@e64g2000cwd.googlegro ups.com...
Hello,
i am using Asp.net application to read contents of FTP folder. I
just want to have names of all folders/files that are inside FTP
directory. So for that i don't want to download any contents from that
FTP , i just need to read it.For e.g. if i want to read names of all
folders/files from this url:

ftp://mediaftp.wiley.com/public/ link how can i do this.
Can anyone please throw some light on this how it's possible?

Thanks in advance for any suggestions in this issue.
Ankita

Nov 3 '06 #2
san
Thanks a lot for your suggestion. That was quite useful.

-Ankita

sloan wrote:
See
http://www.codeproject.com/cs/internet/ftplib.asp
/// <summary>
/// Gets a file list only
/// </summary>
/// <returns>ArrayList of files only</returns>
public ArrayList ListFiles()
{
}

This is for 1.1
"ankita" <an*******@gmail.comwrote in message
news:11*********************@e64g2000cwd.googlegro ups.com...
Hello,
i am using Asp.net application to read contents of FTP folder. I
just want to have names of all folders/files that are inside FTP
directory. So for that i don't want to download any contents from that
FTP , i just need to read it.For e.g. if i want to read names of all
folders/files from this url:

ftp://mediaftp.wiley.com/public/ link how can i do this.
Can anyone please throw some light on this how it's possible?

Thanks in advance for any suggestions in this issue.
Ankita
Nov 7 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Josh | last post by:
Currently we open a form and manualy place the pic in each new record. I need someway for to give Access a folder and then have it import each pic it finds in the folder and place the file name in...
4
by: ESPN Lover | last post by:
Below is two snippets of code from MSDN showing how to read a file. Is one way preferred over the other and why? Thanks. using System; using System.IO; class Test { public static void...
14
by: HB | last post by:
As many of us know, when we send legitimate emails to real customers from our apps, those emails often end up in the Hotmail (and MSN -- and AOL, too) junk folder. I've done a lot of testing with...
3
by: Madingo | last post by:
I need to create a routine that will email all contents of a folder. But The number of files and extensions will be different. Some will have .doc and .xls. Is there a way to email the contents...
4
by: Jay | last post by:
What's the recommended way to change file/folder names within a project? I want to change the solution name from (say) sol1.sln to sol2.sln, and also everything else named sol1.* (eg sol1.suo,...
4
epots9
by: epots9 | last post by:
what i am trying to do is i want my javascript to read the contents of a folder, this folder will only contain files (pictures). Once the it reads in all the file names that are there i would store...
6
by: aanund | last post by:
I don't know if I'm in the right place, or doing this properly, but I hope someone sees it anyway. I am a rookin i PHP, yet I have found this to be an efficient and useful scripting language for many...
7
by: devnew | last post by:
hi i am trying to create a cache of digitized values of around 100 image files in a folder..In my program i would like to know from time to time if a new image has been added or removed from the...
14
by: jehugaleahsa | last post by:
I have a rather complex need. I have a class that parses web pages and extracts all relevant file addresses. It allows me to download every pdf on a web page, for instance. I would like to...
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...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.