Any way to dial up a Network Connection in OORexx?

This is a discussion on Any way to dial up a Network Connection in OORexx? within the REXX forums in Programming Languages category; Hi all, I have OORexx on my Windows XP. In XP's "Network Connections," I have created a Broadband connection, Earthlink, that enables me to connect to the Earthlink server via DSL whenever I select it and right-click on "Connect". Is there any way to write a Rexx program to invoke this connection? Such a Network Connection isn't strictly a "program," so I don't think it has a progID that I can pass to OLEOBject~New. Thanx in advance! -- Steven L. Email: sdlitvin@earthlinkNOSPAM.net Remove the NOSPAM before replying to me....

Go Back   Application Development Forum > Programming Languages > REXX

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 07-18-2008, 01:46 AM
Steven L.
Guest
 
Default Any way to dial up a Network Connection in OORexx?

Hi all,
I have OORexx on my Windows XP.

In XP's "Network Connections," I have created a Broadband connection,
Earthlink, that enables me to connect to the Earthlink server via DSL
whenever I select it and right-click on "Connect".

Is there any way to write a Rexx program to invoke this connection?
Such a Network Connection isn't strictly a "program," so I don't think
it has a progID that I can pass to OLEOBject~New.

Thanx in advance!


--
Steven L.
Email: sdlitvin@earthlinkNOSPAM.net
Remove the NOSPAM before replying to me.
Reply With Quote
  #2  
Old 07-18-2008, 08:04 AM
me@privacy.net
Guest
 
Default Re: Any way to dial up a Network Connection in OORexx?

In <5-GdnY0OEsjTsx3VnZ2dnUVZ_vqdnZ2d@earthlink.com>, on 07/18/2008
at 01:46 AM, "Steven L." <sdlitvin@earthlink.net> said:

>Hi all,
>I have OORexx on my Windows XP.


>In XP's "Network Connections," I have created a Broadband connection,
>Earthlink, that enables me to connect to the Earthlink server via DSL
>whenever I select it and right-click on "Connect".


>Is there any way to write a Rexx program to invoke this connection? Such
>a Network Connection isn't strictly a "program," so I don't think it has
>a progID that I can pass to OLEOBject~New.


>Thanx in advance!


You need to invoke rasdial.exe appropriately. You will need to call it
something like:

rasdial.exe Connection_Name User_Name Password

-- Dave
-----------------------------------------------------------
dhdurgee<at>verizon<dot>net
-----------------------------------------------------------

Reply With Quote
  #3  
Old 07-18-2008, 10:01 AM
Arthur T.
Guest
 
Default Re: Any way to dial up a Network Connection in OORexx?

In Message-ID:<48808760$1$quqhetrr$mr2ice@news.individual.net >,
me@privacy.net wrote:

>In <5-GdnY0OEsjTsx3VnZ2dnUVZ_vqdnZ2d@earthlink.com>, on 07/18/2008
> at 01:46 AM, "Steven L." <sdlitvin@earthlink.net> said:
>
>>Hi all,
>>I have OORexx on my Windows XP.

>
>>In XP's "Network Connections," I have created a Broadband connection,
>>Earthlink, that enables me to connect to the Earthlink server via DSL
>>whenever I select it and right-click on "Connect".

>
>>Is there any way to write a Rexx program to invoke this connection? Such
>>a Network Connection isn't strictly a "program," so I don't think it has
>>a progID that I can pass to OLEOBject~New.

>
>>Thanx in advance!

>
>You need to invoke rasdial.exe appropriately. You will need to call it
>something like:
>
>rasdial.exe Connection_Name User_Name Password


I hadn't known about rasdial. I see that M$ gives us two bad
choices though. rasdial requires that the password be specified
on the "command line". rasphone will pop up the password prompt
window, but doesn't seem to let you go straight to dialing;
instead you have to click on (paraphrased), "Yes! That one! The
one I already told you on the command line that I wanted!"

--
Arthur T. - ar23hur "at" intergate "dot" com
Looking for a z/OS (IBM mainframe) systems programmer position
Reply With Quote
  #4  
Old 07-18-2008, 11:32 AM
me@privacy.net
Guest
 
Default Re: Any way to dial up a Network Connection in OORexx?

In <tu7184h6ce2m67c3pqjqs1oj4qu2cqd7t7@4ax.com>, on 07/18/2008
at 10:01 AM, Arthur T. <arthur@munged.invalid> said:

>In Message-ID:<48808760$1$quqhetrr$mr2ice@news.individual.net >,
>me@privacy.net wrote:


>>In <5-GdnY0OEsjTsx3VnZ2dnUVZ_vqdnZ2d@earthlink.com>, on 07/18/2008
>> at 01:46 AM, "Steven L." <sdlitvin@earthlink.net> said:
>>
>>>Hi all,
>>>I have OORexx on my Windows XP.

>>
>>>In XP's "Network Connections," I have created a Broadband connection,
>>>Earthlink, that enables me to connect to the Earthlink server via DSL
>>>whenever I select it and right-click on "Connect".

>>
>>>Is there any way to write a Rexx program to invoke this connection? Such
>>>a Network Connection isn't strictly a "program," so I don't think it has
>>>a progID that I can pass to OLEOBject~New.

>>
>>>Thanx in advance!

>>
>>You need to invoke rasdial.exe appropriately. You will need to call it
>>something like:
>>
>>rasdial.exe Connection_Name User_Name Password


> I hadn't known about rasdial. I see that M$ gives us two bad
>choices though. rasdial requires that the password be specified on the
>"command line". rasphone will pop up the password prompt window, but
>doesn't seem to let you go straight to dialing; instead you have to click
>on (paraphrased), "Yes! That one! The one I already told you on the
>command line that I wanted!"


I believe if you leave the password off the rasdial command you will be
prompted, but I can't say that I have tried it as the idea was to automate
things.

-- Dave
-----------------------------------------------------------
dhdurgee<at>verizon<dot>net
-----------------------------------------------------------

Reply With Quote
  #5  
Old 07-18-2008, 03:17 PM
Arthur T.
Guest
 
Default Re: Any way to dial up a Network Connection in OORexx?

In Message-ID:<4880b7ae$2$quqhetrr$mr2ice@news.individual.net >,
me@privacy.net wrote:

>I believe if you leave the password off the rasdial command you will be
>prompted, but I can't say that I have tried it as the idea was to automate
>things.


I did test it, and I wasn't prompted. And, from the Windows
help:

>The following Rasphone.exe features are not supported with rasdial:
>
>Entries that require Terminal mode user entry during the dial sequence.



--
Arthur T. - ar23hur "at" intergate "dot" com
Looking for a z/OS (IBM mainframe) systems programmer position
Reply With Quote
  #6  
Old 07-18-2008, 07:37 PM
Steven L.
Guest
 
Default Re: Any way to dial up a Network Connection in OORexx?

me@privacy.net wrote:
> In <5-GdnY0OEsjTsx3VnZ2dnUVZ_vqdnZ2d@earthlink.com>, on 07/18/2008
> at 01:46 AM, "Steven L." <sdlitvin@earthlink.net> said:
>
>> Hi all,
>> I have OORexx on my Windows XP.

>
>> In XP's "Network Connections," I have created a Broadband connection,
>> Earthlink, that enables me to connect to the Earthlink server via DSL
>> whenever I select it and right-click on "Connect".

>
>> Is there any way to write a Rexx program to invoke this connection? Such
>> a Network Connection isn't strictly a "program," so I don't think it has
>> a progID that I can pass to OLEOBject~New.

>
>> Thanx in advance!

>
> You need to invoke rasdial.exe appropriately. You will need to call it
> something like:
>
> rasdial.exe Connection_Name User_Name Password


Thank you!

I did not know about rasdial.exe
so I'm glad I asked!



--
Steven L.
Email: sdlitvin@earthlinkNOSPAM.net
Remove the NOSPAM before replying to me.
Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 08:50 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.