delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/07/26/12:50:28

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-Injected-Via-Gmane: http://gmane.org/
To: cygwin AT cygwin DOT com
From: Mark Ord <ord AT alphalink DOT com DOT 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 AT adexainc DOT com> <7cg2ivo56t2dqc91b57gcjnom7qvjk964u AT 4ax DOT com>
Reply-To: ord AT alphalink DOT com DOT au
X-Complaints-To: usenet AT main DOT gmane DOT 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 DOT edgeZZZ AT lineone DOT 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 AT alphalink DOT com DOT 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019