?
Solved

FTP

Posted on 2006-05-09
4
Medium Priority
?
242 Views
Last Modified: 2010-04-23
I am trying to set up a function to upload a file via ftp.  I do not want to use the windows dialer (or at the very least, I do not want it to be visable)  for locations that are not already on a VPN... I would really prefer to use RASDial to connect directly to our servers.

Also, is there a relaible way to detect whether there is a direct connection to our main servers, so I can write the application to auto-detect the necessity of using RASDial?

Thanks!  
0
Comment
Question by:lgropper
  • 3
4 Comments
 
LVL 9

Accepted Solution

by:
sk33v3 earned 2000 total points
ID: 16642127
Hmm, on the auto detect I would probably suggest using a ping command. Pinging the server(or some device on the same network) would ensure that you can reach the remote server. As far as making the connection I believe you would benefit from reading this chapter http://safari.oreilly.com/0735615799/IDACFDV
0
 

Author Comment

by:lgropper
ID: 16649579
How do I ping the server in VB?
0
 
LVL 9

Expert Comment

by:sk33v3
ID: 16649603
This is directly from the object Browser in Visual Studio

Microsoft.VisualBasic.Devices.Network.Ping(String) As Boolean

Public Function Ping(ByVal hostNameOrAddress As String) As Boolean
     Member of: Microsoft.VisualBasic.Devices.Network
Summary:
Pings the specified server.

Parameters:
hostNameOrAddress: String. The URL, computer name, or IP number of the server to ping. Required.

Return Values:
Boolean indicating whether or not the operation was successful.
0
 
LVL 9

Expert Comment

by:sk33v3
ID: 16649622
here is a link to a related question. However his question was about a SQL Server connection the answer would apply to you too.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Suggested Courses

569 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question