473,666 Members | 1,996 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

iNet Control replacement

Lou
What is the .NET equivelent of the iNet control
I tried FtpWebRequest but that doesn't do it.
All I want to do is give an ipaddress, user name and password, send a CD
command and a DIR command
to get back a lists of files and then download one of those files.
The ip is a local ip NOT on the web.
Any examples would be helpful.

-Louie
Oct 8 '07 #1
7 2008
"Lou" <lo********@com cast.netwrote in news:OxfoMpcCIH A.4308
@TK2MSFTNGP06.p hx.gbl:
What is the .NET equivelent of the iNet control
I tried FtpWebRequest but that doesn't do it.
All I want to do is give an ipaddress, user name and password, send a CD
command and a DIR command
to get back a lists of files and then download one of those files.
The ip is a local ip NOT on the web.
Any examples would be helpful.
There is no FTP control in .NET.
Oct 9 '07 #2
Lou
So your telling me you can't do FTP in .NET!
I am going out on a ledge here and guessing you are wrong...
"Spam Catcher" <sp**********@r ogers.comwrote in message
news:Xn******** *************** ***********@127 .0.0.1...
"Lou" <lo********@com cast.netwrote in news:OxfoMpcCIH A.4308
@TK2MSFTNGP06.p hx.gbl:
>What is the .NET equivelent of the iNet control
I tried FtpWebRequest but that doesn't do it.
All I want to do is give an ipaddress, user name and password, send a CD
command and a DIR command
to get back a lists of files and then download one of those files.
The ip is a local ip NOT on the web.
Any examples would be helpful.

There is no FTP control in .NET.

Oct 9 '07 #3
" There is no FTP control in .NET. " does not mean you cant do it. it means
there isnt a control to do it for you. you have to use the Socket class to
send the raw FTP commands to the server. there is no class or object to do it
for you, you have to code it yourself.

--
-iwdu15
Oct 9 '07 #4
"Lou" <lo********@com cast.netwrote in
news:#H******** ******@TK2MSFTN GP06.phx.gbl:
So your telling me you can't do FTP in .NET!
I am going out on a ledge here and guessing you are wrong...
There's no native FTP control in the .NET Framework.

You must:

1. Write your own FTP client using the Socket classes
2. Download a 3rd party FTP library (Indy Socket Library, etc.)
3. Use your old VB6 COM component (not recommended, but definately doable)
Oct 9 '07 #5
On Oct 8, 10:43 am, "Lou" <lou.gar...@com cast.netwrote:
What is the .NET equivelent of the iNet control
I tried FtpWebRequest but that doesn't do it.
All I want to do is give an ipaddress, user name and password, send a CD
command and a DIR command
to get back a lists of files and then download one of those files.
The ip is a local ip NOT on the web.
Any examples would be helpful.

-Louie
Lou... I have never used FtpWebRequest before, but have you tried
something like:

Dim builder As New UriBuilder("ftp ://192.168.15.1")
builder.UserNam e = "blah"
builder.Passwor d = "blah"

Dim ftpRequest As FtpWebRequest =
DirectCast(WebR equest.Create(b uilder.Uri), FtpWebRequest)

To connect? Just curious.

--
Tom Shelton

Oct 9 '07 #6
Spam Catcher <sp**********@r ogers.comwrote in
news:Xn******** *************** ***********@127 .0.0.1:
"Lou" <lo********@com cast.netwrote in
news:#H******** ******@TK2MSFTN GP06.phx.gbl:
>So your telling me you can't do FTP in .NET!
I am going out on a ledge here and guessing you are wrong...

There's no native FTP control in the .NET Framework.

You must:

1. Write your own FTP client using the Socket classes
2. Download a 3rd party FTP library (Indy Socket Library, etc.)
3. Use your old VB6 COM component (not recommended, but definately
doable)
Oops... I'm totally wrong!!! I didn't realize FTPWebRequest was a .NET
class.

You should be able to list the directory using the ListDirectory function:

http://msdn2.microsoft.com/en-
us/library/system.net.webr equestmethods.f tp.listdirector y.aspx

I feel really dumb. Oops :-S
Oct 9 '07 #7
Lou
Have not tried it but certainly will. Thanks for the snippet.

-Lou

"Tom Shelton" <to*********@co mcast.netwrote in message
news:11******** **************@ 19g2000hsx.goog legroups.com...
On Oct 8, 10:43 am, "Lou" <lou.gar...@com cast.netwrote:
>What is the .NET equivelent of the iNet control
I tried FtpWebRequest but that doesn't do it.
All I want to do is give an ipaddress, user name and password, send a CD
command and a DIR command
to get back a lists of files and then download one of those files.
The ip is a local ip NOT on the web.
Any examples would be helpful.

-Louie

Lou... I have never used FtpWebRequest before, but have you tried
something like:

Dim builder As New UriBuilder("ftp ://192.168.15.1")
builder.UserNam e = "blah"
builder.Passwor d = "blah"

Dim ftpRequest As FtpWebRequest =
DirectCast(WebR equest.Create(b uilder.Uri), FtpWebRequest)

To connect? Just curious.

--
Tom Shelton

Oct 10 '07 #8

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

Similar topics

2
6055
by: Laphan | last post by:
Hi All Just wanted to know if anybody knows the answer to the following quick queries: 1) The reason I'm using VB's INET control is to download copies of Ms Access DBs on a range of web sites so that I have a backup. Found out from my ISP that if my DBs go up the spout then it's down to me to restore - gulp!!! I've created a little FTP gizmo where I could download web pages OK, but not
0
2870
by: AstrA | last post by:
Hi All Using the INET control to extract data from web sites and was told that the user agent should really be spoofed to make it look like a browser, as search engines sometimes black list submitters who don't use browsers to submit. My queries are: 1) What header does the INET send to a web server?
4
8373
by: Steen Gellett | last post by:
Hallo.....I have programmed with winsock for a while, but now I have set my eyes on Inet, but I'm totally blank........a few questions ?? Inet1.Protocol = icFTP......................I can see what this is Inet1.RemotePort = Text4.Text......... Whats the use ?? Inet1.URL = Text1.Text....................Can this be an IP adresse Inet1.UserName = Text2.Text........... I guess thats to connect to FTP Inet1.Password = Text3.Text............ I...
0
3200
by: jtmerch | last post by:
what's the best option for using the Inet control in VB.net? Is there a control that's built for the .net framework that's similar to or better than the old Inet control? I'm opening a URL and port and passing data to that URL and port. The inet control worked fine in VB 6 for this, any ideas on VB.net? Thanks for any help.
0
1395
by: Rick | last post by:
Hi, I haven't been able to find a solution anywhere yet. I have a Vb6 application that has to be rewritten as a vb.net app and in the old application the inet control was set as: inet.Protocol = icHTTP inet.OpenUrl(http://user:password@www.somesite.com/Login) format was used. I have to take this exact same concept and accomplish it in vb.net. Has
3
2512
by: Rick | last post by:
Hi, I haven't been able to find a solution anywhere yet. I have a Vb6 application that has to be rewritten as a vb.net app and in the old application the inet control was set as: inet.Protocol = icHTTP inet.OpenUrl(http://user:password@www.somesite.com/Login) format was used.
0
1007
by: QT | last post by:
Dear sirs, I am using inet control to vrowse web in my program. My line is very slow. I want to make my inet control to wait more than Internet Explorer defaul time. Error page is coming very quick. How can I do that? Best Regards
4
8463
by: Jerry Spence1 | last post by:
The following seemed so easy in VB6 Inet2.URL = HTTP://192.168.0.200/get?brightness Dim retval As String = AxInet2.OpenURL This would give me the string 'Brightness=34' (It's from a camera) How do I do it with VB.Net (2005)? I've trawled through loads of code using
2
410
by: Rob | last post by:
Hi, My name is Rob I have been trying to use the System.Net.Webclient function without success. In VB6 to get the latest version I simple did this: if Inet.OpenUrl("http://somesite.com/update.php") =(My Application Version) then Main.show else 'Out of date
0
8445
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8871
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8551
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6198
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5664
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4198
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4369
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2771
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
2
2011
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.