D
doskei
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.
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.