Article View: free.it.comp.lang.vbnet
Article #1Re: Richiamare vpnclient.exe da codice (usando Process.Start)
From: BigMax
Date: Sat, 28 Oct 2023 10:19
Date: Sat, 28 Oct 2023 10:19
22 lines
2071 bytes
2071 bytes
Il giorno mercoledì 12 gennaio 2011 alle 12:48:06 UTC+1 amsel ha scritto: > Ciao a tutti, > devo tirarmi su una VPN al volo prima di richiamare un web service. > Ho trovato la sintassi corretta da riga di comando di VPN Client e > riesce ad attivare la connessione. > La stessa cosa vorrei farla però da codice. > Dovrebbe essere una cosa del genere, ma richiamando il metodo non accade > nulla: > Public Sub VPN_connect() > Dim p_info As New ProcessStartInfo > Dim p As New Process > p_info.FileName = "D:\vpnclient.exe" > p_info.Arguments = "connect .\my_config user my_userame pwd > my_password" > p_info.WindowStyle = ProcessWindowStyle.Hidden > Process.Start(p_info) > End Sub > Qualsiasi consiglio è bene accetto :) prova a lanciare il processo con diritti di amministratore
Technical Details
Message-ID:
<d25e9701-77e6-4e7c-a46b-e396a5b59d5an@googlegroups.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!archive!apf1.newsdeef.eu!not-for-mailReferences:
<igk4cs$cvi$1@speranza.aioe.org>Show Full Headers
Complete Article Headers
Message-ID: <d25e9701-77e6-4e7c-a46b-e396a5b59d5an@googlegroups.com> Subject: Re: Richiamare vpnclient.exe da codice (usando Process.Start) Date: Sat, 28 Oct 2023 10:19:41 +0000 From: BigMax <bigmax58mail@gmail.com> References: <igk4cs$cvi$1@speranza.aioe.org> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!archive!apf1.newsdeef.eu!not-for-mail X-Received: by 2002:ad4:4f03:0:b0:66d:365:a767 with SMTP id fb3-20020ad44f03000000b0066d0365a767mr84859qvb.8.1698488382429; Sat, 28 Oct 2023 03:19:42 -0700 (PDT) X-Received: by 2002:a05:6830:d0:b0:6c0:a080:f1a7 with SMTP id x16-20020a05683000d000b006c0a080f1a7mr1367281oto.2.1698488382165; Sat, 28 Oct 2023 03:19:42 -0700 (PDT) Newsgroups: free.it.comp.lang.vbnet In-Reply-To: <igk4cs$cvi$1@speranza.aioe.org> Injection-Info: google-groups.googlegroups.com; posting-host=2.37.206.12; posting-account=WhklhgoAAADtcaVyq19rnNyqF8xq9UqT Nntp-Posting-Host: 2.37.206.12 User-Agent: G2/1.0 Mime-Version: 1.0 Injection-Date: Sat, 28 Oct 2023 10:19:42 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable