473,385 Members | 1,872 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Network connections

Okay, I am out of ideas, from a console application, how
do you invoke a dial-up or vpn connection, I can invoke
them from a command prompt doing "start
connectionname.lnk" and run it from a shortcut, but from
within my app or even from a batchfile, it won't work, and
I cannot find anything on the subject. Please help!!

Nov 20 '05 #1
2 1346
Try This
System.Diagnostics.Process.Start("connectionname.l nk")

OHM
the nitewolf wrote:
Okay, I am out of ideas, from a console application, how
do you invoke a dial-up or vpn connection, I can invoke
them from a command prompt doing "start
connectionname.lnk" and run it from a shortcut, but from
within my app or even from a batchfile, it won't work, and
I cannot find anything on the subject. Please help!!


Regards - OHM# OneHandedMan{at}BTInternet{dot}com
Nov 20 '05 #2
or look at shelling out the "rasdial" command.

Syntax is:

rasdial /?
USAGE:
rasdial entryname [username [password|*]] [/DOMAIN:domain]
[/PHONE:phonenumber] [/CALLBACK:callbacknumber]
[/PHONEBOOK:phonebookfile] [/PREFIXSUFFIX]

rasdial [entryname] /DISCONNECT

Where "entryname" is the name in the Dial up Connections list.

hth.

Simon

"One Handed Man [ OHM# ]" <OneHandedMan{at}BTInternet{dot}com> wrote in
message news:%2****************@TK2MSFTNGP12.phx.gbl...
Try This
System.Diagnostics.Process.Start("connectionname.l nk")

OHM
the nitewolf wrote:
Okay, I am out of ideas, from a console application, how
do you invoke a dial-up or vpn connection, I can invoke
them from a command prompt doing "start
connectionname.lnk" and run it from a shortcut, but from
within my app or even from a batchfile, it won't work, and
I cannot find anything on the subject. Please help!!


Regards - OHM# OneHandedMan{at}BTInternet{dot}com

Nov 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: David Sworder | last post by:
Hi there, I am using the SQL managed provider in ADO.NET to fill a dataset with a large number of records. I periodically get an exception with the description "General Network Error" when trying...
6
by: John Walton | last post by:
Hello, everyone. I just began school, and they already assigned us science fair. Since I'm in 8th grade, I get to do demonstrations for our projects. I'm probably going to demonstrate Python's...
6
by: Chakkaradeep | last post by:
hi all, I have written a C# Service which is a Server accepting Clients,It is working fine when i connect from localhost but when i connect from any other machine to my machine , the service is...
4
by: Alex | last post by:
Hi All I'm writing scripts in VBS fore years. But now I've to write a tool in Visual Basic .Net which has to connet to a Windows domain. I know how to do this in VBS but I don't find a way in...
3
by: Radi Radichev | last post by:
Hi All! I want to make a program that monitors the active network connections. Can somebody give me a tip or links with tutorials or something where i can see how is that done? Thanks Greetz...
2
by: Vijayakumar | last post by:
Hi all, How can I enumerate network and dial-up connections using vb.net? I need to display the network and dial-up connections in a combo box and to display its details while selecting the same....
0
by: Vijayakumar | last post by:
Hi all, How can I enumerate network and dial-up connections using vb.net or c#? I need to display the network and dial-up connections in a combo box and to display its details while selecting the...
0
by: vol30w60 | last post by:
Hi folks, I am having a problem using PHP to launch an application on the server. All the basics work, but I cannot launch more than 4 instances of the application. This application functions as...
1
by: Ryan Liu | last post by:
Hi, I have a 100 clients/ one server application, use ugly one thread pre client approach. And both side user sync I/O. I frequently see the error on server side(client side code is same, but...
0
by: Eran.Yasso | last post by:
Hi all, The following code sets/disables network adpter's status. Since I have no idea where to put this code and I wish to share the community with it. I did rverse engineering from VBS to C#....
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.