473,398 Members | 2,120 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.

How to use FtpCommand of WinInet dll in C#

I am writing an FTP client in C# with the help of the functions
available in WinInet.dll. I am able to get everything to work
except the use of the "FtpCommand" function. Basically I am trying
to issue the "NLST" or "LIST" command to a server using FtpCommand .
I am wondering if anyone was able to successfully use this command in
C# to get a list of files/dir t. I will highly appreciate if someone can
give me the code snippets of FtpCommand using NLST or LIST in C#.

Thanks..
Ratan

Thanks..
Ratan
Nov 16 '05 #1
3 5569
Hi Ratan:

I've used the following component to pull a list of files:
http://www.gotdotnet.com/Community/U...A-EF0F0DCECE72

FtpSupport wraps the WinInet API, so you should be able to pull some
code from the project.

HTH,

--
Scott
http://www.OdeToCode.com

On Sun, 26 Sep 2004 22:43:03 -0700, "Ratan"
<Ra***@discussions.microsoft.com> wrote:
I am writing an FTP client in C# with the help of the functions
available in WinInet.dll. I am able to get everything to work
except the use of the "FtpCommand" function. Basically I am trying
to issue the "NLST" or "LIST" command to a server using FtpCommand .
I am wondering if anyone was able to successfully use this command in
C# to get a list of files/dir t. I will highly appreciate if someone can
give me the code snippets of FtpCommand using NLST or LIST in C#.

Thanks..
Ratan

Thanks..
Ratan


Nov 16 '05 #2
Ratan,

In addition to what Scott Allen said, if you can afford to wait for .NET
2.0, then you might want to. There will be support for the FTP protocol
(through the FtpWebRequest and FtpWebResponse methods) in the system.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Ratan" <Ra***@discussions.microsoft.com> wrote in message
news:4B**********************************@microsof t.com...
I am writing an FTP client in C# with the help of the functions
available in WinInet.dll. I am able to get everything to work
except the use of the "FtpCommand" function. Basically I am trying
to issue the "NLST" or "LIST" command to a server using FtpCommand .
I am wondering if anyone was able to successfully use this command in
C# to get a list of files/dir t. I will highly appreciate if someone can
give me the code snippets of FtpCommand using NLST or LIST in C#.

Thanks..
Ratan

Thanks..
Ratan

Nov 16 '05 #3
thx for providing solution.its working fine but i am still looking if
someone implemented FtpCommand for listing the dir contents.

"Scott Allen" wrote:
Hi Ratan:

I've used the following component to pull a list of files:
http://www.gotdotnet.com/Community/U...A-EF0F0DCECE72

FtpSupport wraps the WinInet API, so you should be able to pull some
code from the project.

HTH,

--
Scott
http://www.OdeToCode.com

On Sun, 26 Sep 2004 22:43:03 -0700, "Ratan"
<Ra***@discussions.microsoft.com> wrote:
I am writing an FTP client in C# with the help of the functions
available in WinInet.dll. I am able to get everything to work
except the use of the "FtpCommand" function. Basically I am trying
to issue the "NLST" or "LIST" command to a server using FtpCommand .
I am wondering if anyone was able to successfully use this command in
C# to get a list of files/dir t. I will highly appreciate if someone can
give me the code snippets of FtpCommand using NLST or LIST in C#.

Thanks..
Ratan

Thanks..
Ratan


Nov 16 '05 #4

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

Similar topics

6
by: Dan | last post by:
I have an app that uses the wininet.dll APIs to get web pages and to post to web forms. My problem is that some of my users systems will literally wait an hour before an Internet call to a site...
0
by: Ratan | last post by:
I am writing an FTP client in C# with the help of the functions available in WinInet.dll. I am able to get everything to work except the use of the "FtpCommand" function. Basically I am trying...
0
by: Gerry Abbott | last post by:
Hi All, Im trying to get som ftp functionality into my application, and have some code I sourced from this NG. I'm trying to tailor it for my needs, but need a better understanding of whats...
1
by: Sean Barnes | last post by:
Hello all, I am having a bit a problem with the InternetDial function in the wininet.dll. The problem is that despite passing in a null terminated string as the lpszConnectoid param to the...
3
by: gnanib | last post by:
I am writing an FTP client in C# with the help of the functions available in wininet.dll. I was able to get everything to work except the use of the "FtpCommand" function. Basically I am trying...
1
by: Java Writer via .NET 247 | last post by:
Hey Mon!, This runs and gives me a 'iLen' of 4 but returns empty string. I am guessing this is the programmatic way to check Internet Explorer. {Tools}-{Internet Options)-(Settings...). Even...
3
by: Rich | last post by:
Greetings, I have a VB6 app that uses API's from wininet.dll for FTP- ing textfiles to and from Mainframe computers and doing directory searches on the mainframe from a windows desktop...
0
by: Sjaakie Helderhorst | last post by:
Hi all, I'm trying to create a class which handles FTP. Knowing little of classes I'm having some trouble making things work. Also having trouble finding the meaning of some error-codes. The code...
10
by: MLH | last post by:
My A97 runtime installations are sometimes paused during the install process prompting user with messages saying the files are in use. Generally, I tell them to click IGNORE. Although I haven't...
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
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...
0
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,...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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...

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.