SupportJPG
  Support Home   |   Search   |   Documentation
ArticleId = kb000221

HOWTO: Launch a Dial-up Networking Connection using AVR

The information in this article applies to:

    • ASNA Visual RPG, Release 3.0 and higher
    • Windows
    • TCP/IP

SUMMARY:

This article will discuss a way in which you can launch a dial-up networking connection (e.g. Internet Service Provider) using AVR.

MORE INFORMATION:

NOTE:  These methods listed below are examples.  There might be other methods in which this feature can be incorporated into an AVR application that is not mentioned in this article.

You can use AVR's OSEXEC to launch RASPHONE.EXE and pass parameters to initiate your Dial-up Networking shortcut defined on your Windows machine.

Requirements:

  1. TCP/IP Installed, configured, and working;
  2. Dial-up Location configured and working.

The two figures below illustrate sample code to launch your Dial-Up Locations defined on your system.  These example assume you are using Windows NT or Windows 2000.

// Mainline Code

OSEXEC CMDLINE("C:\winnt\system32\RASPHONE.exe MyConn")

//will bring up the network connections available for a user to dial (with MyConn selected).

Figure 1a

// Mainline Code

OSEXEC CMDLINE('c:\winnt\system32\RASPHONE.exe "My AT&T Connection"')

//will bring up the network connections available for a user to dial (with "My AT&T Connection" selected).

Figure 1b

You can get more information about the rasphone.exe by entering the following command at the command prompt: rasphone /? or reference the following Microsoft kb article: "RASPHONE and RASDIAL: Tips and Differences" (Q125393)

http://support.microsoft.com/search/preview.aspx?scid=kb;en-us;Q125393

Other Web Articles:

Keywords: example, client, develop, IDE, "dial up", automation, networking, remote, connection, RAS

Last Modified Date: 3/15/2002 9:56:56 AM

Copyright © 2005, 2006 ASNA Inc.

  Support Home   |   Search   |   Documentation