Re: command files and networking

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance




"doskei" <jessemcnaughton@xxxxxxxxx> wrote in message
news:1135050058.975521.52210@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> OK, so this question is probably answered elsewhere. Normally I think
> I'd be able to solve it with the wealth of publicly available
> information out there, but the difficulty here seems to be that there's
> no way to search for this information efficiently without bringing up
> tons of nonrelavent results.
>
> So. The problem.
> I'm trying to create a cmd file that launches on boot on my laptop,
> which performs a series of commands that are location- (i.e. network-)
> dependant. So when I'm at work, it connects to the office VPN (req'd
> for wireless connectivity), then maps a number of work-related network
> drives and and sets my homepage. When I'm at home it skips vpn
> (automatically on wireless), connects to a number of network drives
> provided by my little personal server, and sets my homepage.
>
> The only thing I can't seem to do with this thing is launch the VPN.
> I'm running XP pro SP2. The VPN is a pseudo-dialup connection in
> Network connections. The trouble is, I don't know how to specify that
> location in DOS ... in fact I'm rather guessing it might not be
> possible. Creating a shortcut there and examining its properties just
> gives me a huge text string that looks like a registry key from the
> CLSID folder.
>
> So I'm looking for anyone's thoughts. I would really like to be able
> to launch a Windows XP network connection from a cmd file.
>

You could create a shortcut of your VPN icon on the desktop,
then invoke this shortcut in your batch file, e.g. like so:

@echo off
"%UserProfile%\Desktop\VPN.lnk"

Alternatively you could use this approach:
@echo off
"%AllUsersProfile%\Application
Data\Microsoft\Network\Connections\Pbk\Rasphone.pbk"




.



Relevant Pages

  • command files and networking
    ... it connects to the office VPN (req'd ... connects to a number of network drives ... The only thing I can't seem to do with this thing is launch the VPN. ... Network connections. ...
    (microsoft.public.windowsxp.general)
  • Re: VPN remote client not getting IP address
    ... Add a address pool here for VPN clients. ... we need to reinstall TCP/IP stack on SBS: ... VPN remote client not getting IP address ... This was done in the network connections and then we ran the CECIW. ...
    (microsoft.public.windows.server.sbs)
  • Re: VPN remote client not getting IP address
    ... The client had VPN access at this point, they ran out of ADSL internet ... When their bandwidth reset we unplugged our ADSL modem router and plugged ... This was done in the network connections and then we ran the CECIW. ... Our problem still remained and no VPN has been achieved since. ...
    (microsoft.public.windows.server.sbs)
  • citrix connection issue
    ... I have installed Redhat FC3 a week back. ... I am using Citrix ICA metaframe presentation ... I am able to launch the applications when I login as root. ... I login as a regular user, VPN connection is not having any problems, ...
    (comp.os.linux)
  • Re: VPN Connects but no traffic
    ... > network connections", ... > The system was upgraded from SBS 2000 and VPN was working before the ... > upgrade. ... > The only clue I have is the following entry in IPRouterManager.LOG: ...
    (microsoft.public.win2000.ras_routing)