473,587 Members | 2,412 Online
Bytes | Software Development & Data Engineering Community
+ 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 4214
See
http://www.codeproject.com/cs/internet/ftplib.asp
/// <summary>
/// Gets a file list only
/// </summary>
/// <returns>ArrayL ist of files only</returns>
public ArrayList ListFiles()
{
}

This is for 1.1
"ankita" <an*******@gmai l.comwrote in message
news:11******** *************@e 64g2000cwd.goog legroups.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>ArrayL ist of files only</returns>
public ArrayList ListFiles()
{
}

This is for 1.1
"ankita" <an*******@gmai l.comwrote in message
news:11******** *************@e 64g2000cwd.goog legroups.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
1679
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 the txtFilename text box. Can access do this?
4
2727
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 Main()
14
3501
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 Hotmail, using different domain sender names, different sending IPs, different SMTP servers, etc., different email text, and I still can't find out...
3
1656
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 without having to know the names of each file--or is there a may to interate through the contents of the folder to get the names? Any help would be...
4
5677
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, the folder sol1, and within this folder, sol1.csproj, and also, files within Debug and Release folders) Also, how do I change other names (eg .cs...
4
4254
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 them into an array and randomly display them (by changing the src of one of my image tags). If that can not be done i was thinking about try...
6
2098
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 tasks. What I know would like to enquire about is this: I have got hold of a php-script that helps me upload files to a certain folder on my...
7
4331
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 folder.. one scheme suggested was to create a string from the names of sorted image files and give it as the cache name.. ie ,if i have...
14
2217
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 incorporate threads so that I can download N files separately. The obvious solution is a thread pool. However, I need to make sure that I download the...
0
7918
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7843
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8206
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8340
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
5713
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5392
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3840
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
2353
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
1185
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.