I believe that after the dialup session is connected, using whatever properties it has by default, you can still change those properties from the command line using the DOS command in ProComm.
It appears in the "ipconfig /all" just like every other networking connection and its properties can be changed via the command prompt as well.
Anything you can do with the command prompt in windows can be done with the DOS command in ProComm (as long as it is only one-line, or you have to build a batch file).
I am not exactly familiar with the "netsh" command, but there is someone who is very familiar with it and he wrote a cool interface that simplifies the most useful commands into one-liners.
For instance, to use netsh, you must enter that command and wait for the netsh> prompt before taking further action.
ProComm can't do this because as soon as the command is issued, the window closes and the script considers the command sucessfully sent.
So you either have to write a batch file to make the changes for you, or find a way to make the changes you want to make in a "one line command" that you can send with ProComm using the DOS command.
Instead of:
String cmd1, cmd2, cmd3
cmd1 = "c:"
cmd2 = "cd windows"
cmd3 = "dir *.*"
DOS cmd1 HIDDEN
DOS cmd2 HIDDEN
DOS cmd3 HIDDEN
which won't work (because ProComm treats each new DOS command as it own seperate window and command)
You would instead use
string cmd1
cmd1 = "dir c:\windows\*.*"
DOS cmd HIDDEN
Even then, you would have to specify the output to a file so you could read it later.
This guy... Bryan Keadle, who I guess works for this NetCool company, wrote this cool article about a little app he designed called "NETSHX.cmd" which allows you to send one-line netsh commands to do things like changing IP addresses and gateways etc... here is a snippet from his page at
************ Start Quote **************
Provided with Windows XP and 2000 is a command line interface to controlling your network properties, netsh.exe. But navigating the options for using netsh.exe can be a real challenge, and because it's difficult options and syntax, it often gets ignored.
I've simplified the syntax for using netsh.exe by writing a batch file "wrapper" for it, netshx.cmd. With netshx.cmd you can:
backup and restore your network configuration and settings
enable/disable interfaces
change the IP address configuration of any of the interfaces
change your DNS settings
If you find yourself messing with your network settings very often, you'll really appreciate this simplified command to make the changes you need.
REQUIREMENTS: Netsh.exe, DevCon.exe, SandRW.exe to be in path (included in the download)
SYNTAX: netshx (VERB) (PARAMETERS)
== VERBS ==
SET set NIC configuration
eg: netshx SET "Interface_name" "IP_Addr" "Subnet_mask" "Def_gw"
eg: netshx SET "Interface_name" DHCP
*************** END QUOTE *********************
This is a pretty neat little tool.
(I just found this while googling around for netsh help)
If you download these 3 files and use ProComm to DOS send a command like:
cmd = "NetshX SET "Interface_name" "IP_Addr" "Subnet_mask" "Def_gw""
DOS cmd HIDDEN
It should work.
Of course you would have to change the parameters and add a tick ` before each Quotation mark within the string, but it should work.
Please give it a shot and let us know how it works and if this helped you. If it doesn't work, let us know why.
Or if you found another solution, please post that so others like us can learn from your experience.
Cheers!