Batch File

P

Pegasus \(MVP\)

Is there a way to copy a network connection to the desktop in a batch
file?


TIA

There probably is but you need to supply full details of
what you're actually trying to do. An example might be
helpful.
 
J

J-McC

In the batch fille you could use some of the "net use" commands
eg
for the exact syntax do this
start | run | cmd
at prompt enter this
net help use
this will give you a list of the options and settings
now to the batch file , I allways make the first line a brief
description of what it does and the date reminds me of when I wrote it
I used the "subst" command as follows to make my desktop an imaginary
drive:
subst (drivename) (actual path)
you will now have a drive m:
and the net use will make your networked files appear to be drive j:
you should then be able to copy files in eiter direction using xcopy
etc

rem networking batch file 20-mar-2006
subst m: "c:\documents and settings\jim\desktop"
net use j: \\server\diskname\
etc etc

Hope this helps, there are probably more elegant ways of doing this
but this will work.
J McC (e-mail address removed)
===============================================================
 
R

rafmail

I'm wanting to create a batch file to run on a number of centrino
laptops which haven't been used for a wireless connection previously
that will enable the wireless device create the prefered network to
connect to (I've done this) and then copy the VPN network connection
onto the desktop.

Preferably I want as little setup as possible to be done by the end
user, they just run the batch file for initial setup and when they are
in range of the prefered network they just click on the VPN connection
on their destop enter their PIN and they're on.


TIA
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top