Darren DICK
darrend at nimble.com.au
Thu Apr 6 08:12:42 CDT 2006
Hi Gustav I don't want to check if there is a connection I just want to dial a connection with no user intervention Stuart from PNG had the solution Many thanks for the response Darren ------------------------------ T: 0424 696 433 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, 6 April 2006 10:51 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] A2003:Start a dial up connection Hi Darren I have no dial-up connection at hand, but can't you just check if some URL exists? Private Declare Function URLDownloadToFile Lib "urlmon" Alias "URLDownloadToFileA" ( _ ByVal pCaller As Long, _ ByVal szURL As String, _ ByVal szFileName As String, _ ByVal dwReserved As Long, _ ByVal lpfnCB As Long) _ As Long Public Function IsURL(ByVal strURL As String) As Boolean ' Usage: Check if URL strURL is alive and reachable. ' booURL = IsURL("http://www.ibm.com") ' booURL = IsURL("ftp://ftp.novell.com") ' ' Note: Protocol header like "http://" must be provided. ' ' 2001-12-09. Cactus Data ApS. CPH. ' File found at most URLs. Const cstrFileIndex As String = "index.htm" IsURL = (URLDownloadToFile(0, strURL, cstrFileIndex, 0, 0) = 0) End Function /gustav >>> darrend at nimble.com.au 06-04-2006 14:35:18 >>> Hi All In an Access app I have - I need to start up the local dial up connection This if for my personal machine - using dial up only I used to know (probably can find it again) the command line for starting the default dial up screen - but it starts the screen that requires someone to click the 'Connect' or 'Dial' button I have seen apps use the connection to 'just dial' with no user intervention Such as Virus Updaters etc Anyone know the command line or the relevant exe? Many thanks in advance Darren -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com