Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
X-Injected-Via-Gmane: http://gmane.org/
To: cygwin@cygwin.com
From: Mark Ord <ord@alphalink.com.au>
Subject: Re: activating a dial-up connection from cygwin
Date: Sat, 26 Jul 2003 16:43:05 +0000 (UTC)
Lines: 32
Message-ID: <bfub2o$epc$1@main.gmane.org>
References: <0d1001c352b5$3e6328f0$6c0aa8c0@adexainc.com> <7cg2ivo56t2dqc91b57gcjnom7qvjk964u@4ax.com>
Reply-To: ord@alphalink.com.au
X-Complaints-To: usenet@main.gmane.org
User-Agent: tin/1.4.7-20030322 ("Suggestions") (UNIX) (CYGWIN_98-4.10/1.3.22(0.78/3/2) (i686))

Sam Edge <sam.edgeZZZ@lineone.net> wrote:

> It's a built-in in NT, 2k and (I think) XP and works fine for me from
> CMD.EXE or bash.

> There's a freeware (or perhaps shareware) version available for 9x/Me
> as well. You'll have to Google for that.

In 9x you can use rnaui.dll the way Explorer does when you're in the Dial
Up Networking Folder:

rundll32 c:\windows\system\rnaui.dll,RnaDial <entry name>
where <entry name> is the name of the DUN profile.

I've been using the following for quite a while now on Win98SE:
alias dial "start rundll32 c:\\windows\\system\\rnaui.dll,RnaDial <entry name>"

Note that <entry name> can have spaces, the RnaDial function seems to handle
it as one arg without explicitly making it one arg by quoting it.

The other option (which I used to begin with, before tracing how Explorer does
it) is to make a shortcut to the profile and use start.exe to launch it. But I
prefer calling the DLL directly.

FWIW,
Mark.

-- 
Mark Ord                               | I tried my best, tried to forget,
Melbourne, Australia                   | that you're a bad habit, just like a
mailto://ord@alphalink.com.au          | cigarette.
http://www.alphalink.com.au/~ord/home/ | "Spark"         - Jesse Valenzuela - 


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

