Question Locked

Batch file to copy network shares

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

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.

3 replies

This discussion is closed to new replies.