Batch file to copy network shares - TechRepublic
Question
August 17, 2010 at 10:22 AM
pmvg555

Batch file to copy network shares

by pmvg555 . Updated 15 years, 10 months ago

I want to create a batch file to copy the network share adrresses from one pc, make it a batch file to run it on onther pc. See below:

:————–Shares Migrator———–
:cHANGE “?:\MY_SHARES.BAT” to your flash drive letter

for /f “TOKENS=1-4*” %%i in (‘net use^| find “:”‘) do echo
net use %%j %%k /persistent:yes >c:\my_shares.BAT

when you run it, it only remembers the last network share address.

This discussion is locked

All Comments