Advertisement

10.02.2008 at 01:29PM PDT, ID: 23783133 | Points: 500
[x]
Attachment Details

convert to vbs

Asked by alexr54 in Visual Basic Programming, Windows Vista

i cannot get this bat to connect to my workplace vpn i was hoping in vbs it may work, but i cant convert it,, any help please?

@echo off
setlocal

set dialup="Pax VPN"

@echo Dialing %dialup%
rasphone -d %dialup%

for /f "usebackq tokens=1,3" %%i in (`route print`) do (
   if %%i==172.30.0.0 (
      for /l %%k in (16,1,31) do (
          @echo Adding route to 172.%%k.0.0 via gw %%j
          rem route delete 172.%%k.0.0
          route add 172.%%k.0.0 mask 255.255.0.0 %%j
      )
    )
)
Start Free Trial
[+][-]10.03.2008 at 05:12AM PDT, ID: 22633021

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 14-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.07.2008 at 03:15AM PDT, ID: 22657860

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 14-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20081112-EE-VQP-43 - Hierarchy / EE_QW_2_20070628